mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
Colorsettings: add possibility to change shadow color
Shadow color was bound to infobar color and it's not really understandable why, because with some colors eg. black, the shadow is grey or with other colors it is exaggerated colored and seems to be not realistically and looks unusual if shadow is brighter or colorful than foreground. Some themes will thank it. TODO: update theme files with matching values if required
This commit is contained in:
@@ -329,6 +329,11 @@ void CThemes::setTheme(CConfigFile &configfile)
|
||||
configfile.setInt32( "progressbar_timescale_green", t.progressbar_timescale_green);
|
||||
configfile.setInt32( "progressbar_timescale_yellow", t.progressbar_timescale_yellow);
|
||||
configfile.setInt32( "progressbar_timescale_invert", t.progressbar_timescale_invert);
|
||||
|
||||
configfile.setInt32( "shadow_alpha", t.shadow_alpha );
|
||||
configfile.setInt32( "shadow_red", t.shadow_red );
|
||||
configfile.setInt32( "shadow_green", t.shadow_green );
|
||||
configfile.setInt32( "shadow_blue", t.shadow_blue );
|
||||
}
|
||||
|
||||
void CThemes::getTheme(CConfigFile &configfile)
|
||||
@@ -428,6 +433,11 @@ void CThemes::getTheme(CConfigFile &configfile)
|
||||
t.progressbar_timescale_green = configfile.getInt32("progressbar_timescale_green", 100);
|
||||
t.progressbar_timescale_yellow = configfile.getInt32("progressbar_timescale_yellow", 70);
|
||||
t.progressbar_timescale_invert = configfile.getInt32("progressbar_timescale_invert", 0);
|
||||
|
||||
t.shadow_alpha = configfile.getInt32( "shadow_alpha", 0 );
|
||||
t.shadow_red = configfile.getInt32( "shadow_red", 8 );
|
||||
t.shadow_green = configfile.getInt32( "shadow_green", 8);
|
||||
t.shadow_blue = configfile.getInt32( "shadow_blue", 8 );
|
||||
}
|
||||
|
||||
void CThemes::move_userDir()
|
||||
|
Reference in New Issue
Block a user