mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
themes: add setting entry for theme name
Origin commit data
------------------
Branch: ni/coolstream
Commit: 06bd3519d8
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-04-11 (Wed, 11 Apr 2018)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -84,6 +84,7 @@ int CThemes::exec(CMenuTarget* parent, const std::string & actionKey)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
readFile(((std::string)THEMESDIR + "/" + themeFile + FILE_PREFIX).c_str());
|
readFile(((std::string)THEMESDIR + "/" + themeFile + FILE_PREFIX).c_str());
|
||||||
|
g_settings.theme_name = themeFile;
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
@@ -364,6 +364,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
|||||||
|
|
||||||
//theme/color options
|
//theme/color options
|
||||||
CThemes::getTheme(configfile);
|
CThemes::getTheme(configfile);
|
||||||
|
g_settings.theme_name = configfile.getString("theme_name","");
|
||||||
|
|
||||||
//NI
|
//NI
|
||||||
g_settings.inetradio_autostart = configfile.getInt32("inetradio_autostart" , 0);
|
g_settings.inetradio_autostart = configfile.getInt32("inetradio_autostart" , 0);
|
||||||
@@ -1233,6 +1234,7 @@ void CNeutrinoApp::saveSetup(const char * fname)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//theme/color options
|
//theme/color options
|
||||||
|
configfile.getString( "theme_name",g_settings.theme_name );
|
||||||
CThemes::setTheme(configfile);
|
CThemes::setTheme(configfile);
|
||||||
|
|
||||||
//NI
|
//NI
|
||||||
|
@@ -461,6 +461,7 @@ struct SNeutrinoSettings
|
|||||||
|
|
||||||
//theme/color options
|
//theme/color options
|
||||||
SNeutrinoTheme theme;
|
SNeutrinoTheme theme;
|
||||||
|
std::string theme_name;
|
||||||
bool osd_colorsettings_advanced_mode;
|
bool osd_colorsettings_advanced_mode;
|
||||||
|
|
||||||
//network
|
//network
|
||||||
|
Reference in New Issue
Block a user