OSD Menu: Add progressbar color

Origin commit data
------------------
Commit: 2570e06e7d
Author: FlatTV <FlatTV@gmx.de>
Date: 2016-12-26 (Mon, 26 Dec 2016)
This commit is contained in:
FlatTV
2016-12-26 14:58:51 +01:00
parent f69c37e1af
commit c9624a74ec
13 changed files with 85 additions and 11 deletions

View File

@@ -197,6 +197,11 @@ void CColorSetupNotifier::setPalette()
convertSetupColor2RGB(int(t.menu_Content_red*0.6), int(t.menu_Content_green*0.6), int(t.menu_Content_blue*0.6)),
convertSetupColor2RGB(t.colored_events_red, t.colored_events_green, t.colored_events_blue),
8, convertSetupAlpha2Alpha(t.infobar_alpha) );
//NI
frameBuffer->paletteGenFade(COL_PROGRESSBAR,
convertSetupColor2RGB(t.progressbar_passive_red, t.progressbar_passive_green, t.progressbar_passive_blue),
convertSetupColor2RGB(t.progressbar_active_red, t.progressbar_active_green, t.progressbar_active_blue),
8, convertSetupAlpha2Alpha(t.menu_Content_alpha));
// ##### TEXT COLORS #####
// COL_COLORED_EVENTS_TEXT
@@ -278,6 +283,11 @@ void CColorSetupNotifier::setPalette()
frameBuffer->paletteSetColor(COL_NEUTRINO_TEXT + 15,
convertSetupColor2RGB(t.clock_Digit_red, t.clock_Digit_green, t.clock_Digit_blue),
convertSetupAlpha2Alpha(t.clock_Digit_alpha));
//NI
// COL_PROGRESSBAR_ACTIVE
frameBuffer->paletteSetColor(COL_NEUTRINO_TEXT + 16,
convertSetupColor2RGB(t.progressbar_active_red, t.progressbar_active_green, t.progressbar_active_blue),
convertSetupAlpha2Alpha(t.menu_Content_alpha));
frameBuffer->paletteSet();
}