CThemes: visualize current selected or applied theme

Origin commit data
------------------
Branch: ni/coolstream
Commit: 1aaaf8cb86
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:
2018-04-11 23:58:15 +02:00
committed by vanhofen
parent 4d2b0a051d
commit b7f68fffcc
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();