forked from ganzziani/xscopes-qt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
customtheme.h
56 lines (44 loc) · 1.01 KB
/
customtheme.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
#ifndef CUSTOMTHEME_H
#define CUSTOMTHEME_H
#include <QDialog>
#include <QDesktopWidget>
#include <QColorDialog>
#include <QSettings>
#include <QFile>
#include <QPixmap>
#include <QIcon>
#include <QButtonGroup>
#include <QDebug>
#include "customcolors.h"
#define custom 2
#define SET 509
namespace Ui {
class CustomTheme;
}
class CustomTheme : public QDialog
{
Q_OBJECT
public:
explicit CustomTheme(QWidget *parent = 0);
~CustomTheme();
void saveTheme();
void loadTheme();
void loadDefaultTheme();
void colorizeButtons();
QString idealForegroundColor(QColor);
QIcon prepareIcon(QColor color);
void prepareButtons();
private slots:
void on_applyButton_clicked();
void on_cancelButton_clicked();
void onButtonClicked(QAbstractButton*);
signals:
void applyCustomTheme(int,CustomColors*);
public:
Ui::CustomTheme *ui;
int isThemeSet;
QColorDialog *colorDialog;
CustomColors customColors;
QButtonGroup m_buttonGroup;
};
#endif // CUSTOMTHEME_H