mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
- colors: make footer text color configurable
This commit is contained in:
@@ -1091,6 +1091,7 @@ typedef enum
|
||||
LOCALE_MENU_HINT_HDD_STATFS,
|
||||
LOCALE_MENU_HINT_HDD_TOOLS,
|
||||
LOCALE_MENU_HINT_FOOT_BACK,
|
||||
LOCALE_MENU_HINT_FOOT_TEXTCOLOR,
|
||||
LOCALE_MENU_HINT_HEAD_BACK,
|
||||
LOCALE_MENU_HINT_HEAD_TEXTCOLOR,
|
||||
LOCALE_MENU_HINT_IMAGEINFO,
|
||||
|
@@ -1091,6 +1091,7 @@ const char * locale_real_names[] =
|
||||
"menu.hint_hdd_statfs",
|
||||
"menu.hint_hdd_tools",
|
||||
"menu.hint_foot_back",
|
||||
"menu.hint_foot_textcolor",
|
||||
"menu.hint_head_back",
|
||||
"menu.hint_head_textcolor",
|
||||
"menu.hint_imageinfo",
|
||||
|
@@ -170,7 +170,7 @@ void CColorSetupNotifier::setPalette()
|
||||
|
||||
frameBuffer->paletteGenFade(COL_MENUFOOT,
|
||||
convertSetupColor2RGB(t.menu_Foot_red, t.menu_Foot_green, t.menu_Foot_blue),
|
||||
convertSetupColor2RGB(int(t.infobar_Text_red*0.6), int(t.infobar_Text_green*0.6), int(t.infobar_Text_blue*0.6)), /*TODO: use own color*/
|
||||
convertSetupColor2RGB(t.menu_Foot_Text_red, t.menu_Foot_Text_green, t.menu_Foot_Text_blue),
|
||||
8, convertSetupAlpha2Alpha( t.menu_Foot_alpha ) );
|
||||
|
||||
frameBuffer->paletteGenFade(COL_INFOBAR,
|
||||
@@ -211,8 +211,8 @@ void CColorSetupNotifier::setPalette()
|
||||
|
||||
// COL_MENUFOOT_TEXT
|
||||
frameBuffer->paletteSetColor(COL_NEUTRINO_TEXT + 2,
|
||||
convertSetupColor2RGB(int(t.infobar_Text_red*0.6), int(t.infobar_Text_green*0.6), int(t.infobar_Text_blue*0.6)),
|
||||
convertSetupAlpha2Alpha(t.infobar_alpha));
|
||||
convertSetupColor2RGB(t.menu_Foot_Text_red, t.menu_Foot_Text_green, t.menu_Foot_Text_blue),
|
||||
convertSetupAlpha2Alpha(t.menu_Foot_alpha));
|
||||
|
||||
// COL_MENUHEAD_TEXT
|
||||
frameBuffer->paletteSetColor(COL_NEUTRINO_TEXT + 3,
|
||||
|
@@ -99,6 +99,11 @@ struct SNeutrinoTheme
|
||||
unsigned char menu_Foot_green;
|
||||
unsigned char menu_Foot_blue;
|
||||
|
||||
unsigned char menu_Foot_Text_alpha;
|
||||
unsigned char menu_Foot_Text_red;
|
||||
unsigned char menu_Foot_Text_green;
|
||||
unsigned char menu_Foot_Text_blue;
|
||||
|
||||
int menu_Hint_gradient;
|
||||
int menu_Hint_gradient_direction;
|
||||
int menu_ButtonBar_gradient;
|
||||
|
Reference in New Issue
Block a user