-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfigpanel.h
73 lines (60 loc) · 1.45 KB
/
configpanel.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef CONFIGPANEL_H
#define CONFIGPANEL_H
#include "Utilities/paneldialog.h"
#include "Utilities/colorbutton.h"
#include <QMainWindow>
#include <QColor>
#include <QCheckBox>
struct ColorProfile
{
QString bl;
QString bm;
QString bd;
QString fl;
QString fm;
QString fd;
QString sl;
QString sm;
QString sd;
};
class ConfigPanel : public Panel
{
Q_OBJECT
public:
ConfigPanel(QMainWindow *parent);
void sysGuiEnabled(bool arg);
void autoSave() override;
ColorProfile getProfile() const;
void setTempProfile(const ColorProfile& profile);
const QString blDefault = "#566170";
const QString bmDefault = "#3E4754";
const QString bdDefault = "#283445";
const QString flDefault = "#C6D9F2";
const QString fmDefault = "#9DADC2";
const QString fdDefault = "#808D9E";
const QString slDefault = "#FFFFFF";
const QString smDefault = "#DDEEFF";
const QString sdDefault = "#306294";
ColorButton *bl;
ColorButton *bm;
ColorButton *bd;
ColorButton *fl;
ColorButton *fm;
ColorButton *fd;
ColorButton *sl;
ColorButton *sm;
ColorButton *sd;
QCheckBox *useSystemGui;
QPushButton *restore;
const QString sysGuiKey = "ConfigPanel/useSystemGui";
public slots:
void setDefaultStyle();
void sysGuiClicked(bool);
};
class ConfigDialog : public PanelDialog
{
Q_OBJECT
public:
ConfigDialog(QMainWindow *parent);
};
#endif // CONFIGPANEL_H