mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
menu: add hint-icon and hint-text to "continue" menu items
Origin commit data
------------------
Commit: d9b3e9420a
Author: vanhofen <vanhofen@gmx.de>
Date: 2015-05-15 (Fri, 15 May 2015)
Origin message was:
------------------
- menu: add hint-icon and hint-text to "continue" menu items
This commit is contained in:
@@ -186,7 +186,8 @@
|
||||
#define NEUTRINO_ICON_BUTTON_MUTE_ZAP_INACTIVE "mute_zap_gray"
|
||||
|
||||
/* menu hints */
|
||||
#define NEUTRINO_ICON_HINT_BACK "hint_back"
|
||||
#define NEUTRINO_ICON_HINT_BACK "hint_back"
|
||||
#define NEUTRINO_ICON_HINT_NEXT "hint_next"
|
||||
/* main menu */
|
||||
#define NEUTRINO_ICON_HINT_TVRADIO_SWITCH "hint_tvradio_switch"
|
||||
#define NEUTRINO_ICON_HINT_TVMODE "hint_tvmode"
|
||||
|
@@ -1011,14 +1011,17 @@ void CMenuWidget::hide()
|
||||
void CMenuWidget::checkHints()
|
||||
{
|
||||
GenericMenuBack->setHint("", NONEXISTANT_LOCALE);
|
||||
GenericMenuNext->setHint("", NONEXISTANT_LOCALE);
|
||||
for (unsigned int i= 0; i< items.size(); i++) {
|
||||
if(items[i]->hintIcon || items[i]->hint != NONEXISTANT_LOCALE || !items[i]->hintText.empty()) {
|
||||
has_hints = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (has_hints)
|
||||
if (has_hints) {
|
||||
GenericMenuBack->setHint(NEUTRINO_ICON_HINT_BACK, LOCALE_MENU_HINT_BACK);
|
||||
GenericMenuNext->setHint(NEUTRINO_ICON_HINT_NEXT, LOCALE_MENU_HINT_NEXT);
|
||||
}
|
||||
}
|
||||
|
||||
void CMenuWidget::calcSize()
|
||||
|
Reference in New Issue
Block a user