-
Notifications
You must be signed in to change notification settings - Fork 3
/
theme.h
68 lines (58 loc) · 2.61 KB
/
theme.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
#ifndef THEME_H
#define THEME_H
#include <QObject>
#include <QColor>
class Theme : public QObject
{
Q_OBJECT
Q_PROPERTY(qreal paddingSmall READ paddingSmall CONSTANT FINAL)
Q_PROPERTY(qreal paddingMedium READ paddingMedium CONSTANT FINAL)
Q_PROPERTY(qreal paddingLarge READ paddingLarge CONSTANT FINAL)
Q_PROPERTY(qreal fontSizeSmall READ fontSizeSmall CONSTANT FINAL)
Q_PROPERTY(qreal fontSizeMedium READ fontSizeMedium CONSTANT FINAL)
Q_PROPERTY(qreal fontSizeLarge READ fontSizeLarge CONSTANT FINAL)
Q_PROPERTY(qreal fontSizeExtraLarge READ fontSizeExtraLarge CONSTANT FINAL)
Q_PROPERTY(qreal fontSizeHuge READ fontSizeHuge CONSTANT FINAL)
Q_PROPERTY(qreal itemSizeExtraSmall READ itemSizeExtraSmall CONSTANT FINAL)
Q_PROPERTY(qreal itemSizeSmall READ itemSizeSmall CONSTANT FINAL)
Q_PROPERTY(qreal itemSizeMedium READ itemSizeMedium CONSTANT FINAL)
Q_PROPERTY(qreal itemSizeLarge READ itemSizeLarge CONSTANT FINAL)
Q_PROPERTY(qreal defaultWidth READ defaultWidth CONSTANT FINAL)
Q_PROPERTY(qreal defaultHeight READ defaultHeight CONSTANT FINAL)
Q_PROPERTY(qreal colorSweep READ colorSweep CONSTANT FINAL)
Q_PROPERTY(QColor backgroundColor READ backgroundColor CONSTANT FINAL)
Q_PROPERTY(QColor itemColor READ itemColor CONSTANT FINAL)
Q_PROPERTY(QColor textColor READ textColor CONSTANT FINAL)
Q_PROPERTY(QColor mainColor READ mainColor CONSTANT FINAL)
Q_PROPERTY(QColor alternateMainColor READ alternateMainColor CONSTANT FINAL)
Q_PROPERTY(QColor mainTextColor READ mainTextColor CONSTANT FINAL)
Q_PROPERTY(QColor placeholderTextColor READ placeholderTextColor CONSTANT FINAL)
public:
explicit Theme(QObject *parent = 0);
public: // Metrics
qreal paddingSmall() const;
qreal paddingMedium() const;
qreal paddingLarge() const;
qreal fontSizeSmall() const;
qreal fontSizeMedium() const;
qreal fontSizeLarge() const;
qreal fontSizeExtraLarge() const;
qreal fontSizeHuge() const;
qreal itemSizeExtraSmall() const;
qreal itemSizeSmall() const;
qreal itemSizeMedium() const;
qreal itemSizeLarge() const;
qreal defaultWidth() const;
qreal defaultHeight() const;
public: // Color transformation
qreal colorSweep() const;
public: // Colors
QColor backgroundColor() const;
QColor itemColor() const;
QColor textColor() const;
QColor mainColor() const;
QColor alternateMainColor() const;
QColor mainTextColor() const;
QColor placeholderTextColor() const;
};
#endif // THEME_H