- icons: add default hint icon

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-12-18 11:00:17 +01:00
committed by Thilo Graf
parent b9f0bf8f7d
commit da3957b735
4 changed files with 3 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ install_DATA = \
hint_bedit.png \
hint_ci.png \
hint_dboxinfo.png \
hint_default.png \
hint_delete.png \
hint_extended.png \
hint_factory.png \

Binary file not shown.

After

Width:  |  Height:  |  Size: 437 B

View File

@@ -178,6 +178,7 @@
#define NEUTRINO_ICON_BUTTON_MUTE_ZAP_INACTIVE "mute_zap_gray"
/* menu hints */
#define NEUTRINO_ICON_HINT_DEFAULT "hint_default"
#define NEUTRINO_ICON_HINT_BACK "hint_back"
#define NEUTRINO_ICON_HINT_NEXT "hint_next"
/* main menu */

View File

@@ -1532,7 +1532,7 @@ void CMenuWidget::paintHint(int pos)
info_box->setColorAll(COL_FRAME_PLUS_0, COL_MENUCONTENTDARK_PLUS_0);
info_box->setTextColor(COL_MENUCONTENTDARK_TEXT);
info_box->enableShadow();
info_box->setPicture(item->hintIcon ? item->hintIcon : NULL);
info_box->setPicture(item->hintIcon ? item->hintIcon : NEUTRINO_ICON_HINT_DEFAULT);
info_box->enableColBodyGradient(g_settings.theme.menu_Hint_gradient, COL_MENUFOOT_PLUS_0, g_settings.theme.menu_Hint_gradient_direction);// COL_MENUFOOT_PLUS_0 is default footer color
//paint result