From 76fa4bc2216e5338f0ebb4dd38ed48e4c34745b8 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Thu, 7 May 2015 16:38:29 +0300 Subject: [PATCH] gui/themes.cpp: add option to switch one/two color gradient mode --- src/gui/themes.cpp | 2 ++ src/system/settings.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/gui/themes.cpp b/src/gui/themes.cpp index a8424c690..a8cbd2e26 100644 --- a/src/gui/themes.cpp +++ b/src/gui/themes.cpp @@ -290,6 +290,7 @@ 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 ); + configfile.setInt32( "gradient_c2c", t.gradient_c2c ); } void CThemes::getTheme(CConfigFile &configfile) @@ -349,6 +350,7 @@ void CThemes::getTheme(CConfigFile &configfile) t.clock_Digit_red = configfile.getInt32( "clock_Digit_red", t.menu_Content_Text_red ); t.clock_Digit_green = configfile.getInt32( "clock_Digit_green", t.menu_Content_Text_green ); t.clock_Digit_blue = configfile.getInt32( "clock_Digit_blue", t.menu_Content_Text_blue ); + t.gradient_c2c = configfile.getInt32( "gradient_c2c", 0 ); } void CThemes::move_userDir() diff --git a/src/system/settings.h b/src/system/settings.h index bbacbfe8d..132506a1a 100644 --- a/src/system/settings.h +++ b/src/system/settings.h @@ -119,6 +119,7 @@ struct SNeutrinoTheme unsigned char clock_Digit_red; unsigned char clock_Digit_green; unsigned char clock_Digit_blue; + int gradient_c2c; }; struct SNeutrinoSettings