Icons: change check markers, rename to dialog on/off, add update marker

This commit is contained in:
2018-04-11 16:42:22 +02:00
parent 8c5ab1b22b
commit ee0f90d083
10 changed files with 21 additions and 15 deletions

View File

@@ -1,8 +1,9 @@
installdir = $(ICONSDIR) installdir = $(ICONSDIR)
install_DATA = \ install_DATA = \
checkmark.png \
important.png \ important.png \
marker_dialog_off.png \
marker_dialog_ok.png \
marker_epg.png \ marker_epg.png \
marker_hidden.png \ marker_hidden.png \
marker_lock.png \ marker_lock.png \
@@ -16,7 +17,7 @@ install_DATA = \
marker_timeshift.png \ marker_timeshift.png \
marker_timeshift_gray.png \ marker_timeshift_gray.png \
marker_tv.png \ marker_tv.png \
marker_update_available.png \
marker_zap.png \ marker_zap.png \
mounted.png \ mounted.png \
not_mounted.png \ not_mounted.png
warning.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 794 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 286 B

View File

@@ -300,7 +300,7 @@ int CAdZapMenu::exec(CMenuTarget *parent, const std::string & actionKey)
{ {
bool selected = (g_settings.adzap_zapBackPeriod == shortcut); bool selected = (g_settings.adzap_zapBackPeriod == shortcut);
forwarders[shortcut - 1]->setMarked(selected); forwarders[shortcut - 1]->setMarked(selected);
forwarders[shortcut - 1]->iconName_Info_right = selected ? NEUTRINO_ICON_CHECKMARK : NULL; forwarders[shortcut - 1]->iconName_Info_right = selected ? NEUTRINO_ICON_MARKER_DIALOG_OK : NULL;
} }
nc->setMarked(false); nc->setMarked(false);
g_settings.adzap_zapBackPeriod *= 60; g_settings.adzap_zapBackPeriod *= 60;
@@ -340,7 +340,7 @@ void CAdZapMenu::ShowMenu()
bool selected = g_settings.adzap_zapBackPeriod == 60 * shortcut; bool selected = g_settings.adzap_zapBackPeriod == 60 * shortcut;
forwarders[shortcut - 1] = new CMenuForwarder(minute, true, NULL, this, actionKey, CRCInput::convertDigitToKey(shortcut)); forwarders[shortcut - 1] = new CMenuForwarder(minute, true, NULL, this, actionKey, CRCInput::convertDigitToKey(shortcut));
forwarders[shortcut - 1]->setMarked(selected); forwarders[shortcut - 1]->setMarked(selected);
forwarders[shortcut - 1]->iconName_Info_right = selected ? NEUTRINO_ICON_CHECKMARK : NULL; forwarders[shortcut - 1]->iconName_Info_right = selected ? NEUTRINO_ICON_MARKER_DIALOG_OK : NULL;
forwarders[shortcut - 1]->setHint(NEUTRINO_ICON_HINT_ADZAP, ""); forwarders[shortcut - 1]->setHint(NEUTRINO_ICON_HINT_ADZAP, "");
menu->addItem(forwarders[shortcut - 1], selected); menu->addItem(forwarders[shortcut - 1], selected);
minute = LOCALE_ADZAP_MINUTES; minute = LOCALE_ADZAP_MINUTES;

View File

@@ -5,7 +5,7 @@
OPKG-Manager Class for Neutrino-GUI OPKG-Manager Class for Neutrino-GUI
Implementation: Implementation:
Copyright (C) 2012-2015 T. Graf 'dbt' Copyright (C) 2012-2018 T. Graf 'dbt'
www.dbox2-tuning.net www.dbox2-tuning.net
Adaptions: Adaptions:
@@ -433,10 +433,10 @@ void COPKGManager::updateMenu()
it->second.forwarder->iconName_Info_right = ""; it->second.forwarder->iconName_Info_right = "";
it->second.forwarder->setActive(true); it->second.forwarder->setActive(true);
if (it->second.upgradable) { if (it->second.upgradable) {
it->second.forwarder->iconName_Info_right = NEUTRINO_ICON_WARNING; it->second.forwarder->iconName_Info_right = NEUTRINO_ICON_MARKER_UPDATE_AVAILABLE;
upgradesAvailable = true; upgradesAvailable = true;
} else if (it->second.installed) { } else if (it->second.installed) {
it->second.forwarder->iconName_Info_right = NEUTRINO_ICON_CHECKMARK; it->second.forwarder->iconName_Info_right = NEUTRINO_ICON_MARKER_DIALOG_OK;
it->second.forwarder->setActive(expert_mode); it->second.forwarder->setActive(expert_mode);
} }
} }

View File

@@ -673,7 +673,7 @@ int CFlashUpdate::exec(CMenuTarget* parent, const std::string &actionKey)
bool active = !strcmp(c, to_string(i).c_str()); bool active = !strcmp(c, to_string(i).c_str());
std::string m_title = "Partition " + to_string(i); std::string m_title = "Partition " + to_string(i);
mf = new CMenuForwarder(m_title, true, NULL, selector, to_string(i).c_str(), CRCInput::convertDigitToKey(i)); mf = new CMenuForwarder(m_title, true, NULL, selector, to_string(i).c_str(), CRCInput::convertDigitToKey(i));
mf->iconName_Info_right = active ? NEUTRINO_ICON_CHECKMARK : NULL; mf->iconName_Info_right = active ? NEUTRINO_ICON_MARKER_DIALOG_OK : NULL;
m.addItem(mf, active); m.addItem(mf, active);
} }

View File

@@ -74,6 +74,11 @@
#define NEUTRINO_ICON_BUTTON_MUTE_ZAP_ACTIVE "mute_zap_green" #define NEUTRINO_ICON_BUTTON_MUTE_ZAP_ACTIVE "mute_zap_green"
#define NEUTRINO_ICON_BUTTON_MUTE_ZAP_INACTIVE "mute_zap_gray" #define NEUTRINO_ICON_BUTTON_MUTE_ZAP_INACTIVE "mute_zap_gray"
#define NEUTRINO_ICON_BUTTON_OPTION_ON_ACTIVE "btn_option_on_active"
#define NEUTRINO_ICON_BUTTON_OPTION_ON_INACTIVE "btn_option_on_inactive"
#define NEUTRINO_ICON_BUTTON_OPTION_OFF_ACTIVE "btn_option_off_active"
#define NEUTRINO_ICON_BUTTON_OPTION_OFF_INACTIVE "btn_option_off_inactive"
/* headers */ /* headers */
#define NEUTRINO_ICON_BLUE "icon_blue" #define NEUTRINO_ICON_BLUE "icon_blue"
#define NEUTRINO_ICON_GREEN "icon_green" #define NEUTRINO_ICON_GREEN "icon_green"
@@ -283,15 +288,15 @@
#define NEUTRINO_ICON_STAR_ON "star-on" #define NEUTRINO_ICON_STAR_ON "star-on"
#define NEUTRINO_ICON_STAR_OFF "star-off" #define NEUTRINO_ICON_STAR_OFF "star-off"
#define NEUTRINO_ICON_STARS_BG "stars_bg" //NI #define NEUTRINO_ICON_STARS_BG "stars_bg"
#define NEUTRINO_ICON_STARS "stars" //NI #define NEUTRINO_ICON_STARS "stars"
#define NEUTRINO_ICON_IMDB "imdb" #define NEUTRINO_ICON_IMDB "imdb"
#define NEUTRINO_ICON_TMDB "tmdb" #define NEUTRINO_ICON_TMDB "tmdb"
/* opkg manager */ /* status */
#define NEUTRINO_ICON_CHECKMARK "checkmark" #define NEUTRINO_ICON_MARKER_DIALOG_OK "marker_dialog_ok"
#define NEUTRINO_ICON_WARNING "warning" #define NEUTRINO_ICON_MARKER_DIALOG_OFF "marker_dialog_off"
#define NEUTRINO_ICON_MARKER_UPDATE_AVAILABLE "marker_update_available.png"
#endif /* __gui_widget_icons_h__ */ #endif /* __gui_widget_icons_h__ */