-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h
52 lines (42 loc) · 1.14 KB
/
config.h
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef CONFIG_H
#define CONFIG_H
#include <QMainWindow>
#include <QDir>
#include <QMessageBox>
#include <QFile>
#include <QIODevice>
#include <QTextStream>
#include <QFileDialog>
#include <QMap>
#define LIGHT_THEME_CODE "-l"
#define DARK_THEME_CODE ""
#define BE_SCHEMER2_CODE "schemer2"
#define BE_COLORTHIEF_CODE "colorthief"
#define BE_COLORZ_CODE "colorz"
#define BE_HAISHOKU_CODE "haishoku"
#define BE_WAL_CODE "wal"
#define COLOR_SCHEME_CONFIG_NAME "COLOR_SCHEME_MODE"
#define ACCENT_COLOR_CONFIG_NAME "ACCENT_COLOR_CODE"
#define WINDOW_MANAGER_CONFIG_NAME "WINDOW_MANAGER"
#define ENABLE_CONFIG_NAME "ENABLE_WAL"
#define WAL_BACKEND_NAME "WAL_BACKEND"
#define DEFAULT_CONFIG_FILE_NAME "/.config/wal/theme.conf"
class Config
{
private:
bool enabled;
QString theme, backEnd, accentColorCode;
void readDefaultConfig();
public:
Config();
void setTheme(QString theme);
void setAccentColorCode(QString code);
void setBackEnd(QString BE);
void enable(int enable);
QString getTheme();
QString getAccentColorCode();
QString getBackEnd();
bool isEnabled();
QString generateConfigFile();
};
#endif // CONFIG_H