settings: add gradient options for sub header theme settings

Origin commit data
------------------
Commit: 973f744042
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-04-02 (Tue, 02 Apr 2019)
This commit is contained in:
2019-04-02 22:10:16 +02:00
committed by vanhofen
parent 0841083184
commit 8a79a0f32b
2 changed files with 14 additions and 1 deletions

View File

@@ -295,6 +295,11 @@ void CThemes::setTheme(CConfigFile &configfile)
configfile.setInt32( "menu_Head_gradient" , t.menu_Head_gradient);
configfile.setInt32( "menu_Head_gradient_direction" , t.menu_Head_gradient_direction);
configfile.setInt32( "menu_SubHead_gradient" , t.menu_SubHead_gradient);
configfile.setInt32( "menu_SubHead_gradient_direction" , t.menu_SubHead_gradient_direction);
configfile.setInt32( "menu_Separator_gradient_enable" , t.menu_Separator_gradient_enable);
configfile.setInt32( "menu_Content_alpha", t.menu_Content_alpha );
@@ -403,8 +408,12 @@ void CThemes::getTheme(CConfigFile &configfile)
t.menu_Head_Text_green = configfile.getInt32( "menu_Head_Text_green", 43 );
t.menu_Head_Text_blue = configfile.getInt32( "menu_Head_Text_blue", 7 );
t.menu_Head_gradient = configfile.getInt32("menu_Head_gradient", CC_COLGRAD_OFF); /* no bling */
t.menu_Head_gradient = configfile.getInt32("menu_Head_gradient", CC_COLGRAD_OFF);
t.menu_Head_gradient_direction = configfile.getInt32( "menu_Head_gradient_direction", CFrameBuffer::gradientVertical);
t.menu_SubHead_gradient = configfile.getInt32("menu_SubHead_gradient", CC_COLGRAD_OFF);
t.menu_SubHead_gradient_direction = configfile.getInt32( "menu_SubHead_gradient_direction", CFrameBuffer::gradientVertical);
t.menu_Separator_gradient_enable = configfile.getInt32( "menu_Separator_gradient_enable", 0);
t.menu_Content_alpha = configfile.getInt32( "menu_Content_alpha", 10 );

View File

@@ -68,6 +68,10 @@ struct SNeutrinoTheme
int menu_Head_gradient;
int menu_Head_gradient_direction;
int menu_SubHead_gradient;
int menu_SubHead_gradient_direction;
int menu_Separator_gradient_enable;
unsigned char menu_Content_alpha;