CThemes: visualize current selected or applied theme

This commit is contained in:
2018-04-11 16:12:03 +02:00
parent 953028ae82
commit 0d5b81c03f
2 changed files with 28 additions and 1 deletions

View File

@@ -27,14 +27,17 @@
#include <string>
#include <configfile.h>
#include <system/setting_helpers.h>
#include <sigc++/signal.h>
#include <sigc++/bind.h>
class CThemes : public CMenuTarget, CColorSetupNotifier
class CThemes : public CMenuTarget, CColorSetupNotifier, public sigc::trackable
{
private:
CConfigFile themefile;
int width;
SNeutrinoTheme oldTheme;
std::string oldTheme_name;
bool hasThemeChanged;
@@ -45,6 +48,9 @@ class CThemes : public CMenuTarget, CColorSetupNotifier
void rememberOldTheme(bool remember);
void move_userDir();
bool applyDefaultTheme();
///signal after select theme is completed
sigc::signal<void> OnAfterSelectTheme;
void markSelectedTheme(CMenuWidget *w);
public:
CThemes();