forked from redasm-dev/redasm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththemeprovider.h
More file actions
33 lines (26 loc) · 804 Bytes
/
themeprovider.h
File metadata and controls
33 lines (26 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef THEMEPROVIDER_H
#define THEMEPROVIDER_H
#define THEME_ICON(n) ThemeProvider::icon(n)
#define THEME_VALUE(n) ThemeProvider::themeValue(n)
#define THEME_VALUE_COLOR(n) THEME_VALUE(n).name()
#include <QJsonObject>
#include <QColor>
#include <QIcon>
class ThemeProvider
{
public:
ThemeProvider() = delete;
ThemeProvider(const ThemeProvider&) = delete;
public:
static void loadTheme(const QString &theme);
static bool contains(const QString& name);
static QColor themeValue(const QString& name);
static QIcon icon(const QString& name);
static QColor seekColor();
static QColor dottedColor();
public:
static void selectDarkTheme();
private:
static QJsonObject m_theme;
};
#endif // THEMEPROVIDER_H