From 9a76404b8062056477927c18da496a8d0ffde614 Mon Sep 17 00:00:00 2001 From: striper Date: Mon, 5 Sep 2011 15:44:44 +0000 Subject: [PATCH] - 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 --- src/gui/themes.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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; }