diff --git a/src/gui/themes.cpp b/src/gui/themes.cpp index 354c50a11..6f9703b0d 100644 --- a/src/gui/themes.cpp +++ b/src/gui/themes.cpp @@ -333,6 +333,10 @@ void CThemes::readFile(char* themename) g_settings.infobar_Text_red = themefile.getInt32( "infobar_Text_red", 0x64 ); g_settings.infobar_Text_green = themefile.getInt32( "infobar_Text_green", 0x64 ); g_settings.infobar_Text_blue = themefile.getInt32( "infobar_Text_blue", 0x64 ); + g_settings.colored_events_alpha = themefile.getInt32( "colored_events_alpha", 0x00 ); + g_settings.colored_events_red = themefile.getInt32( "colored_events_red", 95 ); + g_settings.colored_events_green = themefile.getInt32( "colored_events_green", 70 ); + g_settings.colored_events_blue = themefile.getInt32( "colored_events_blue", 0 ); notifier = new CColorSetupNotifier; notifier->changeNotify(NONEXISTANT_LOCALE, NULL); @@ -385,6 +389,10 @@ void CThemes::saveFile(char * themename) themefile.setInt32( "infobar_Text_red", g_settings.infobar_Text_red ); themefile.setInt32( "infobar_Text_green", g_settings.infobar_Text_green ); themefile.setInt32( "infobar_Text_blue", g_settings.infobar_Text_blue ); + themefile.setInt32( "colored_events_alpha", g_settings.colored_events_alpha ); + themefile.setInt32( "colored_events_red", g_settings.colored_events_red ); + themefile.setInt32( "colored_events_green", g_settings.colored_events_green ); + themefile.setInt32( "colored_events_blue", g_settings.colored_events_blue ); if (!themefile.saveConfig(themename)) printf("[neutrino theme] %s write error\n", themename); @@ -444,6 +452,11 @@ void CThemes::setupDefaultColors() g_settings.infobar_Text_red = 0x64; g_settings.infobar_Text_green = 0x64; g_settings.infobar_Text_blue = 0x64; + + g_settings.colored_events_alpha = 0x00; + g_settings.colored_events_red = 95; + g_settings.colored_events_green = 70; + g_settings.colored_events_blue = 0; }