diff --git a/data/locale/deutsch.locale b/data/locale/deutsch.locale index 1cb2eee57..cf3f8ff45 100644 --- a/data/locale/deutsch.locale +++ b/data/locale/deutsch.locale @@ -355,6 +355,8 @@ colormenu.font_ttx Teletext Schriftart colormenu.hd_preset LCD colormenu.menucolors Farben colormenu.osd_preset Monitor Auswahl +colormenu.progressbar_active Farbe des aktiven Teil +colormenu.progressbar_passive Hintergrundfarbe colormenu.sd_preset CRT colormenu.textcolor Textfarbe colormenu.themeselect Theme auswählen @@ -1420,9 +1422,11 @@ menu.hint_power_leds Konfiguriert das Verhalten der LEDs an der Power-Taste menu.hint_pref_lang Wählen Sie ihre bevorzugte Tonspur und EPG-Sprache,\ndie Einstellung 'none' deaktiviert diese Option menu.hint_pref_subs Wählen Sie ihre bevorzugte Untertitel-Sprache,\ndie Einstellung 'none' deaktiviert diese Option menu.hint_progressbar Wählen Sie die Optionen für die Fortschrittsbalken-Anzeige +menu.hint_progressbar_active Ändern Sie die Farbe für den aktiven Teil der Fortschrittsbalken-Anzeige menu.hint_progressbar_color Erscheinungsbild der Fortschrittsbalken auswählen menu.hint_progressbar_gradient Fügt dem Fortschrittsbalken einen vertikalen Helligkeitsverlauf hinzu. menu.hint_progressbar_infobar_position Wählt die Optionen des Fortschrittsbalkens in der Infobar +menu.hint_progressbar_passive Ändern Sie die Farbe für den Hintergrund der Fortschrittsbalken-Anzeige menu.hint_progressbar_preview Mit der OK-Taste können Sie den Stand des Fortschrittsbalkens ändern menu.hint_progressbar_timescale_green Hier können Sie den grünen Farbanteil bunter Fortschrittsbalken anpassen menu.hint_progressbar_timescale_invert Wählen Sie den Farbverlauf diff --git a/data/locale/english.locale b/data/locale/english.locale index b90154a65..bc3df1419 100644 --- a/data/locale/english.locale +++ b/data/locale/english.locale @@ -355,6 +355,8 @@ colormenu.font_ttx Select Teletext font colormenu.hd_preset LCD colormenu.menucolors Colors colormenu.osd_preset TV preset +colormenu.progressbar_active Aktive part color +colormenu.progressbat_passive Background colormenu.sd_preset CRT colormenu.textcolor Text color colormenu.themeselect Select theme @@ -1420,9 +1422,11 @@ menu.hint_power_leds Configure power-button LEDs behavior menu.hint_pref_lang Select preferred audio and EPG language\nselect 'none' to disable menu.hint_pref_subs Select preferred subtitle language\nselect 'none' to disable menu.hint_progressbar Select the options for the progressbar +menu.hint_progressbar_active Change color of active progress bar part menu.hint_progressbar_color Change appearance of progress bars menu.hint_progressbar_gradient Add a vertical brightness gradient to progress bars menu.hint_progressbar_infobar_position Selects the options of progressbar in the infobar +menu.hint_progressbar_passive Change color of passive progress bar part menu.hint_progressbar_preview Use OK to change the current progressbar state menu.hint_progressbar_timescale_green Choose the green portion of colored progressbars menu.hint_progressbar_timescale_invert Select your preferred color gradient diff --git a/data/themes/Makefile.am b/data/themes/Makefile.am index aa2eab9cc..2f258a963 100644 --- a/data/themes/Makefile.am +++ b/data/themes/Makefile.am @@ -1,6 +1,7 @@ installdir = $(THEMESDIR) install_DATA = \ + AdulteratedOrange.theme \ Bluemoon-3.0.theme \ Classic.theme \ Crema.theme \ diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index b681e9284..d753ec69d 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -2043,7 +2043,7 @@ void CChannelList::paintItem(int pos, const bool firstpaint) pb.setType(CProgressBar::PB_TIMESCALE); pb.setDesign(g_settings.channellist_progressbar_design); pb.setCornerType(0); - pb.setStatusColors(COL_MENUCONTENT_PLUS_3, COL_MENUCONTENT_PLUS_1); + pb.setStatusColors(COL_PROGRESSBAR_ACTIVE_PLUS_0, COL_PROGRESSBAR_PASSIVE_PLUS_0); //NI int pb_frame = 0; if (g_settings.channellist_progressbar_design == CProgressBar::PB_MONO && !g_settings.progressbar_gradient) { diff --git a/src/gui/color.h b/src/gui/color.h index 52a84005e..31afdd1b1 100644 --- a/src/gui/color.h +++ b/src/gui/color.h @@ -37,6 +37,7 @@ #define COL_MAXFREE 254-8*16 - 1 #define COL_NEUTRINO_TEXT 254-8*16 // 32 values? +#define COL_PROGRESSBAR 254-8*12 //NI #define COL_MENUFOOT 254-8*11 #define COL_INFOBAR_CASYSTEM 254-8*10 #define COL_COLORED_EVENTS_CHANNELLIST 254-8*9 @@ -75,6 +76,7 @@ #define COL_MENUCONTENTINACTIVE_PLUS_0 (COL_MENUCONTENTINACTIVE + 0) #define COL_MENUFOOT_PLUS_0 (COL_MENUFOOT + 0) #define COL_BACKGROUND_PLUS_0 (COL_BACKGROUND + 0) +#define COL_PROGRESSBAR_PASSIVE_PLUS_0 (COL_PROGRESSBAR + 0) #else #define COL_SHADOW_PLUS_0 (CFrameBuffer::getInstance()->realcolor[(COL_SHADOW + 0)]) #define COL_INFOBAR_PLUS_0 (CFrameBuffer::getInstance()->realcolor[(COL_INFOBAR + 0)]) @@ -99,6 +101,7 @@ #define COL_MENUCONTENTINACTIVE_PLUS_0 (CFrameBuffer::getInstance()->realcolor[(COL_MENUCONTENTINACTIVE + 0)]) #define COL_MENUFOOT_PLUS_0 (CFrameBuffer::getInstance()->realcolor[(COL_MENUFOOT + 0)]) #define COL_BACKGROUND_PLUS_0 (CFrameBuffer::getInstance()->realcolor[(COL_BACKGROUND + 0)]) +#define COL_PROGRESSBAR_PASSIVE_PLUS_0 (CFrameBuffer::getInstance()->realcolor[(COL_PROGRESSBAR + 0)]) // text colors #define COL_COLORED_EVENTS_TEXT (CFrameBuffer::getInstance()->realcolor[(COL_NEUTRINO_TEXT + 0)]) @@ -117,6 +120,7 @@ #define COL_MENUCONTENTSELECTED_TEXT_PLUS_2 (CFrameBuffer::getInstance()->realcolor[(COL_NEUTRINO_TEXT + 13)]) #define COL_MENUCONTENTINACTIVE_TEXT (CFrameBuffer::getInstance()->realcolor[(COL_NEUTRINO_TEXT + 14)]) #define COL_INFOCLOCK_TEXT (CFrameBuffer::getInstance()->realcolor[(COL_NEUTRINO_TEXT + 15)]) +#define COL_PROGRESSBAR_ACTIVE_PLUS_0 (CFrameBuffer::getInstance()->realcolor[(COL_NEUTRINO_TEXT + 16)]) //NI #endif // some wrappers to get more readability @@ -128,10 +132,10 @@ #define COL_SCROLLBAR_PASSIVE COL_MENUCONTENT_PLUS_1 #define COL_SCROLLBAR_PASSIVE_PLUS_0 COL_SCROLLBAR_PASSIVE -#define COL_PROGRESSBAR_ACTIVE COL_MENUCONTENT_PLUS_7 -#define COL_PROGRESSBAR_ACTIVE_PLUS_0 COL_PROGRESSBAR_ACTIVE -#define COL_PROGRESSBAR_PASSIVE COL_MENUCONTENT_PLUS_1 -#define COL_PROGRESSBAR_PASSIVE_PLUS_0 COL_PROGRESSBAR_PASSIVE +//NI #define COL_PROGRESSBAR_ACTIVE COL_MENUCONTENT_PLUS_7 +//NI #define COL_PROGRESSBAR_ACTIVE_PLUS_0 COL_PROGRESSBAR_ACTIVE +//NI #define COL_PROGRESSBAR_PASSIVE COL_MENUCONTENT_PLUS_1 +//NI #define COL_PROGRESSBAR_PASSIVE_PLUS_0 COL_PROGRESSBAR_PASSIVE int convertSetupColor2RGB(unsigned char r, unsigned char g, unsigned char b); int convertSetupAlpha2Alpha(unsigned char alpha); diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index bc10ffb2c..1ad2fcb95 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -1744,8 +1744,8 @@ void CInfoViewer::showSNR () int sigbox_offset = ChanWidth *10/100; sigbox = new CSignalBox(BoxStartX + sigbox_offset, y_numbox+ChanHeight/2, ChanWidth - 2*sigbox_offset, ChanHeight/2, NULL, true, NULL, "S", "Q"); sigbox->setTextColor(COL_INFOBAR_TEXT); - sigbox->setActiveColor(COL_INFOBAR_PLUS_7); - sigbox->setPassiveColor(COL_INFOBAR_PLUS_3); + sigbox->setActiveColor(COL_PROGRESSBAR_ACTIVE_PLUS_0); + sigbox->setPassiveColor(COL_PROGRESSBAR_PASSIVE_PLUS_0); sigbox->setColorBody(numbox->getColorBody()); sigbox->doPaintBg(false); sigbox->enableTboxSaveScreen(numbox->getColBodyGradientMode()); @@ -1835,8 +1835,8 @@ void CInfoViewer::display_Info(const char *current, const char *next, pb_p = pb_w; timescale->setDimensionsAll(pb_startx, pb_starty, pb_w, pb_h); - timescale->setActiveColor(COL_INFOBAR_PLUS_7); - timescale->setPassiveColor(g_settings.infobar_progressbar ? COL_INFOBAR_PLUS_1 : COL_INFOBAR_PLUS_0); + timescale->setActiveColor(COL_PROGRESSBAR_ACTIVE_PLUS_0); + timescale->setPassiveColor(g_settings.infobar_progressbar ? COL_PROGRESSBAR_PASSIVE_PLUS_0 : COL_INFOBAR_PLUS_0); timescale->enableShadow(!g_settings.infobar_progressbar ? CC_SHADOW_ON : CC_SHADOW_OFF, OFFSET_SHADOW/2); timescale->setValues(pb_p, pb_w); diff --git a/src/gui/lua/luainstance.cpp b/src/gui/lua/luainstance.cpp index ea7eb8bb3..c570bb2c6 100644 --- a/src/gui/lua/luainstance.cpp +++ b/src/gui/lua/luainstance.cpp @@ -175,8 +175,8 @@ static void set_lua_variables(lua_State *L) { "FRAME", MAGIC_COLOR | (COL_FRAME) }, { "SCROLLBAR_ACTIVE", MAGIC_COLOR | (COL_SCROLLBAR_ACTIVE) }, { "SCROLLBAR_PASSIVE", MAGIC_COLOR | (COL_SCROLLBAR_PASSIVE) }, - { "PROGRESSBAR_ACTIVE", MAGIC_COLOR | (COL_PROGRESSBAR_ACTIVE) }, - { "PROGRESSBAR_PASSIVE", MAGIC_COLOR | (COL_PROGRESSBAR_PASSIVE) }, + { "PROGRESSBAR_ACTIVE", MAGIC_COLOR | (COL_PROGRESSBAR_ACTIVE_PLUS_0) }, //NI + { "PROGRESSBAR_PASSIVE", MAGIC_COLOR | (COL_PROGRESSBAR_PASSIVE_PLUS_0) }, //NI { "BACKGROUND", MAGIC_COLOR | (COL_BACKGROUND) }, { "DARK_RED", MAGIC_COLOR | (COL_DARK_RED0) }, { "DARK_GREEN", MAGIC_COLOR | (COL_DARK_GREEN0) }, diff --git a/src/gui/osd_setup.cpp b/src/gui/osd_setup.cpp index e9257badc..d382dc522 100644 --- a/src/gui/osd_setup.cpp +++ b/src/gui/osd_setup.cpp @@ -782,6 +782,12 @@ void COsdSetup::showOsdMenueColorSetup(CMenuWidget *menu_colors) &t.menu_Foot_alpha, colorSetupNotifier); CColorChooser* chFootTextcolor = new CColorChooser(LOCALE_COLORMENU_TEXTCOLOR, &t.menu_Foot_Text_red, &t.menu_Foot_Text_green, &t.menu_Foot_Text_blue, NULL, colorSetupNotifier); + //NI + CColorChooser* chProgressbar_passive = new CColorChooser(LOCALE_COLORMENU_PROGRESSBAR_PASSIVE, &t.progressbar_passive_red, &t.progressbar_passive_green, &t.progressbar_passive_blue, + NULL, colorSetupNotifier); + //NI + CColorChooser* chProgressbar_active = new CColorChooser(LOCALE_COLORMENU_PROGRESSBAR_ACTIVE, &t.progressbar_active_red, &t.progressbar_active_green, &t.progressbar_active_blue, + NULL, colorSetupNotifier); menu_colors->addItem( new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, LOCALE_COLORMENUSETUP_MENUHEAD)); @@ -947,6 +953,19 @@ void COsdSetup::showOsdMenueColorSetup(CMenuWidget *menu_colors) oj = new CMenuOptionChooser(LOCALE_MISCSETTINGS_COLORED_EVENTS_INFOBAR, &t.colored_events_infobar, OPTIONS_COLORED_EVENTS_OPTIONS, OPTIONS_COLORED_EVENTS_OPTION_COUNT, true); oj->setHint("", LOCALE_MENU_HINT_COLORED_EVENTS); menu_colors->addItem(oj); + + //NI progressbar + menu_colors->addItem( new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, LOCALE_MISCSETTINGS_PROGRESSBAR)); + + //NI - progressbar passive + mf = new CMenuDForwarder(LOCALE_COLORMENU_PROGRESSBAR_PASSIVE, true, NULL, chProgressbar_passive ); + mf->setHint("", LOCALE_MENU_HINT_PROGRESSBAR_PASSIVE); + menu_colors->addItem(mf); + + //NI - progressbar aktive + mf = new CMenuDForwarder(LOCALE_COLORMENU_PROGRESSBAR_ACTIVE, true, NULL, chProgressbar_active ); + mf->setHint("", LOCALE_MENU_HINT_PROGRESSBAR_ACTIVE); + menu_colors->addItem(mf); } /* for font size setup */ diff --git a/src/gui/themes.cpp b/src/gui/themes.cpp index 8d14cf529..939987d0c 100644 --- a/src/gui/themes.cpp +++ b/src/gui/themes.cpp @@ -321,6 +321,14 @@ void CThemes::setTheme(CConfigFile &configfile) configfile.setInt32( "clock_Digit_red", t.clock_Digit_red ); configfile.setInt32( "clock_Digit_green", t.clock_Digit_green ); configfile.setInt32( "clock_Digit_blue", t.clock_Digit_blue ); + + //NI + configfile.setInt32( "progressbar_active_red", t.progressbar_active_red ); + configfile.setInt32( "progressbar_active_green", t.progressbar_active_green ); + configfile.setInt32( "progressbar_active_blue", t.progressbar_active_blue ); + configfile.setInt32( "progressbar_passive_red", t.progressbar_passive_red ); + configfile.setInt32( "progressbar_passive_green", t.progressbar_passive_green ); + configfile.setInt32( "progressbar_passive_blue", t.progressbar_passive_blue ); } void CThemes::getTheme(CConfigFile &configfile) @@ -412,6 +420,14 @@ void CThemes::getTheme(CConfigFile &configfile) t.clock_Digit_red = configfile.getInt32( "clock_Digit_red", 62 ); t.clock_Digit_green = configfile.getInt32( "clock_Digit_green", 62 ); t.clock_Digit_blue = configfile.getInt32( "clock_Digit_blue", 62 ); + + //NI + t.progressbar_active_red = configfile.getInt32( "progressbar_active_red", 98 ); + t.progressbar_active_green = configfile.getInt32( "progressbar_active_green", 98 ); + t.progressbar_active_blue = configfile.getInt32( "progressbar_active_blue", 98 ); + t.progressbar_passive_red = configfile.getInt32( "progressbar_passive_red", 60 ); + t.progressbar_passive_green = configfile.getInt32( "progressbar_passive_green", 60 ); + t.progressbar_passive_blue = configfile.getInt32( "progressbar_passive_blue", 60 ); } void CThemes::move_userDir() diff --git a/src/system/locals.h b/src/system/locals.h index 2fececf52..d363b6005 100644 --- a/src/system/locals.h +++ b/src/system/locals.h @@ -382,6 +382,8 @@ typedef enum LOCALE_COLORMENU_HD_PRESET, LOCALE_COLORMENU_MENUCOLORS, LOCALE_COLORMENU_OSD_PRESET, + LOCALE_COLORMENU_PROGRESSBAR_ACTIVE, + LOCALE_COLORMENU_PROGRESSBAR_PASSIVE, LOCALE_COLORMENU_SD_PRESET, LOCALE_COLORMENU_TEXTCOLOR, LOCALE_COLORMENU_THEMESELECT, @@ -1447,9 +1449,11 @@ typedef enum LOCALE_MENU_HINT_PREF_LANG, LOCALE_MENU_HINT_PREF_SUBS, LOCALE_MENU_HINT_PROGRESSBAR, + LOCALE_MENU_HINT_PROGRESSBAR_ACTIVE, LOCALE_MENU_HINT_PROGRESSBAR_COLOR, LOCALE_MENU_HINT_PROGRESSBAR_GRADIENT, LOCALE_MENU_HINT_PROGRESSBAR_INFOBAR_POSITION, + LOCALE_MENU_HINT_PROGRESSBAR_PASSIVE, LOCALE_MENU_HINT_PROGRESSBAR_PREVIEW, LOCALE_MENU_HINT_PROGRESSBAR_TIMESCALE_GREEN, LOCALE_MENU_HINT_PROGRESSBAR_TIMESCALE_INVERT, diff --git a/src/system/locals_intern.h b/src/system/locals_intern.h index aa8fce3bd..77ebcb11c 100644 --- a/src/system/locals_intern.h +++ b/src/system/locals_intern.h @@ -382,6 +382,8 @@ const char * locale_real_names[] = "colormenu.hd_preset", "colormenu.menucolors", "colormenu.osd_preset", + "colormenu.progressbar_active", + "colormenu.progressbar_passive", "colormenu.sd_preset", "colormenu.textcolor", "colormenu.themeselect", @@ -1447,9 +1449,11 @@ const char * locale_real_names[] = "menu.hint_pref_lang", "menu.hint_pref_subs", "menu.hint_progressbar", + "menu.hint_progressbar_active", "menu.hint_progressbar_color", "menu.hint_progressbar_gradient", "menu.hint_progressbar_infobar_position", + "menu.hint_progressbar_passive", "menu.hint_progressbar_preview", "menu.hint_progressbar_timescale_green", "menu.hint_progressbar_timescale_invert", diff --git a/src/system/setting_helpers.cpp b/src/system/setting_helpers.cpp index 08d3af362..9e8472124 100644 --- a/src/system/setting_helpers.cpp +++ b/src/system/setting_helpers.cpp @@ -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(); } diff --git a/src/system/settings.h b/src/system/settings.h index 1540495e3..754553de7 100644 --- a/src/system/settings.h +++ b/src/system/settings.h @@ -143,6 +143,14 @@ struct SNeutrinoTheme unsigned char clock_Digit_red; unsigned char clock_Digit_green; unsigned char clock_Digit_blue; + + //NI + unsigned char progressbar_active_red; + unsigned char progressbar_active_green; + unsigned char progressbar_active_blue; + unsigned char progressbar_passive_red; + unsigned char progressbar_passive_green; + unsigned char progressbar_passive_blue; }; struct timer_remotebox_item