21 lines
378 B
C++
21 lines
378 B
C++
/**
|
|
* Theme manager
|
|
*/
|
|
#pragma once
|
|
|
|
#include "src/wx_common.h"
|
|
#include "src/settings/Config.h"
|
|
|
|
class ThemeConfig : TyroConfig {
|
|
public:
|
|
ThemeConfig();
|
|
~ThemeConfig();
|
|
bool SetTheme(const string &theme_name);
|
|
JsonValue GetTheme();
|
|
JsonValue GetThemeValue(string type, string key);
|
|
wxColor GetThemeColor(string type, string key);
|
|
private:
|
|
JsonValue current_theme;
|
|
};
|
|
|