- addition to rev. 1662+1663

add colored events to readFile(), saveFile() and setupDefaultColors()

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1666 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
striper
2011-09-05 15:44:44 +00:00
parent 27d91297b4
commit 9a76404b80

View File

@@ -333,6 +333,10 @@ void CThemes::readFile(char* themename)
g_settings.infobar_Text_red = themefile.getInt32( "infobar_Text_red", 0x64 ); 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_green = themefile.getInt32( "infobar_Text_green", 0x64 );
g_settings.infobar_Text_blue = themefile.getInt32( "infobar_Text_blue", 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 = new CColorSetupNotifier;
notifier->changeNotify(NONEXISTANT_LOCALE, NULL); 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_red", g_settings.infobar_Text_red );
themefile.setInt32( "infobar_Text_green", g_settings.infobar_Text_green ); themefile.setInt32( "infobar_Text_green", g_settings.infobar_Text_green );
themefile.setInt32( "infobar_Text_blue", g_settings.infobar_Text_blue ); 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)) if (!themefile.saveConfig(themename))
printf("[neutrino theme] %s write error\n", 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_red = 0x64;
g_settings.infobar_Text_green = 0x64; g_settings.infobar_Text_green = 0x64;
g_settings.infobar_Text_blue = 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;
} }