mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
settings: add optional gradiant switch
At the moment without gui option, only for testing yet. Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com>
This commit is contained in:
@@ -515,6 +515,8 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
|||||||
|
|
||||||
CThemes::getTheme(configfile);
|
CThemes::getTheme(configfile);
|
||||||
|
|
||||||
|
g_settings.gradiant = (configfile.getBool( "gradiant", false ))? 1 : 0;
|
||||||
|
|
||||||
//personalize
|
//personalize
|
||||||
g_settings.personalize_pincode = configfile.getString( "personalize_pincode", "0000" );
|
g_settings.personalize_pincode = configfile.getString( "personalize_pincode", "0000" );
|
||||||
for (int i = 0; i < SNeutrinoSettings::P_SETTINGS_MAX; i++)//settings.h, settings.cpp
|
for (int i = 0; i < SNeutrinoSettings::P_SETTINGS_MAX; i++)//settings.h, settings.cpp
|
||||||
@@ -1022,6 +1024,8 @@ void CNeutrinoApp::saveSetup(const char * fname)
|
|||||||
|
|
||||||
CThemes::setTheme(configfile);
|
CThemes::setTheme(configfile);
|
||||||
|
|
||||||
|
configfile.setBool( "gradiant", (g_settings.gradiant!=0)?true:false );
|
||||||
|
|
||||||
//personalize
|
//personalize
|
||||||
configfile.setString("personalize_pincode", g_settings.personalize_pincode);
|
configfile.setString("personalize_pincode", g_settings.personalize_pincode);
|
||||||
for (int i = 0; i < SNeutrinoSettings::P_SETTINGS_MAX; i++) //settings.h, settings.cpp
|
for (int i = 0; i < SNeutrinoSettings::P_SETTINGS_MAX; i++) //settings.h, settings.cpp
|
||||||
|
@@ -352,6 +352,7 @@ struct SNeutrinoSettings
|
|||||||
int colored_events_channellist;
|
int colored_events_channellist;
|
||||||
int colored_events_infobar;
|
int colored_events_infobar;
|
||||||
int contrast_fonts;
|
int contrast_fonts;
|
||||||
|
int gradiant;
|
||||||
|
|
||||||
//network
|
//network
|
||||||
#define NETWORK_NFS_NR_OF_ENTRIES 8
|
#define NETWORK_NFS_NR_OF_ENTRIES 8
|
||||||
|
Reference in New Issue
Block a user