25 lines
452 B
C++
25 lines
452 B
C++
/**
|
|
* Theme manager
|
|
*/
|
|
|
|
#ifndef TYRO_THEME_CONFIG_H
|
|
#define TYRO_THEME_CONFIG_H
|
|
|
|
#include "../wx_common.h"
|
|
#include "../base/settings/Config.h"
|
|
|
|
class ThemeConfig : TyroConfig {
|
|
public:
|
|
ThemeConfig();
|
|
~ThemeConfig();
|
|
bool SetTheme(string theme_name);
|
|
JsonValue GetTheme();
|
|
JsonValue GetThemeValue(string type, string key);
|
|
wxColor GetThemeColor(string type, string key);
|
|
private:
|
|
JsonValue current_theme;
|
|
};
|
|
|
|
#endif /* TYRO_THEME_CONFIG_H */
|
|
|