1 | /**************************************************************************** |
2 | ** |
3 | ** Copyright (C) 2017 The Qt Company Ltd. |
4 | ** Contact: http://www.qt.io/licensing/ |
5 | ** |
6 | ** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit. |
7 | ** |
8 | ** $QT_BEGIN_LICENSE:LGPL3$ |
9 | ** Commercial License Usage |
10 | ** Licensees holding valid commercial Qt licenses may use this file in |
11 | ** accordance with the commercial license agreement provided with the |
12 | ** Software or, alternatively, in accordance with the terms contained in |
13 | ** a written agreement between you and The Qt Company. For licensing terms |
14 | ** and conditions see http://www.qt.io/terms-conditions. For further |
15 | ** information use the contact form at http://www.qt.io/contact-us. |
16 | ** |
17 | ** GNU Lesser General Public License Usage |
18 | ** Alternatively, this file may be used under the terms of the GNU Lesser |
19 | ** General Public License version 3 as published by the Free Software |
20 | ** Foundation and appearing in the file LICENSE.LGPLv3 included in the |
21 | ** packaging of this file. Please review the following information to |
22 | ** ensure the GNU Lesser General Public License version 3 requirements |
23 | ** will be met: https://www.gnu.org/licenses/lgpl.html. |
24 | ** |
25 | ** GNU General Public License Usage |
26 | ** Alternatively, this file may be used under the terms of the GNU |
27 | ** General Public License version 2.0 or later as published by the Free |
28 | ** Software Foundation and appearing in the file LICENSE.GPL included in |
29 | ** the packaging of this file. Please review the following information to |
30 | ** ensure the GNU General Public License version 2.0 requirements will be |
31 | ** met: http://www.gnu.org/licenses/gpl-2.0.html. |
32 | ** |
33 | ** $QT_END_LICENSE$ |
34 | ** |
35 | ****************************************************************************/ |
36 | |
37 | #ifndef QQUICKDEFAULTSTYLE_P_H |
38 | #define QQUICKDEFAULTSTYLE_P_H |
39 | |
40 | // |
41 | // W A R N I N G |
42 | // ------------- |
43 | // |
44 | // This file is not part of the Qt API. It exists purely as an |
45 | // implementation detail. This header file may change from version to |
46 | // version without notice, or even be removed. |
47 | // |
48 | // We mean it. |
49 | // |
50 | |
51 | #include <QtCore/qobject.h> |
52 | #include <QtGui/qcolor.h> |
53 | |
54 | QT_BEGIN_NAMESPACE |
55 | |
56 | class QQuickDefaultStyle : public QObject |
57 | { |
58 | Q_OBJECT |
59 | Q_PROPERTY(QColor backgroundColor READ backgroundColor CONSTANT FINAL) |
60 | Q_PROPERTY(QColor overlayModalColor READ overlayModalColor CONSTANT FINAL) |
61 | Q_PROPERTY(QColor overlayDimColor READ overlayDimColor CONSTANT FINAL) |
62 | Q_PROPERTY(QColor textColor READ textColor CONSTANT FINAL) |
63 | Q_PROPERTY(QColor textDarkColor READ textDarkColor CONSTANT FINAL) |
64 | Q_PROPERTY(QColor textLightColor READ textLightColor CONSTANT FINAL) |
65 | Q_PROPERTY(QColor textLinkColor READ textLinkColor CONSTANT FINAL) |
66 | Q_PROPERTY(QColor textSelectionColor READ textSelectionColor CONSTANT FINAL) |
67 | Q_PROPERTY(QColor textDisabledColor READ textDisabledColor CONSTANT FINAL) |
68 | Q_PROPERTY(QColor textDisabledLightColor READ textDisabledLightColor CONSTANT FINAL) |
69 | Q_PROPERTY(QColor textPlaceholderColor READ textPlaceholderColor CONSTANT FINAL) |
70 | Q_PROPERTY(QColor focusColor READ focusColor CONSTANT FINAL) |
71 | Q_PROPERTY(QColor focusLightColor READ focusLightColor CONSTANT FINAL) |
72 | Q_PROPERTY(QColor focusPressedColor READ focusPressedColor CONSTANT FINAL) |
73 | Q_PROPERTY(QColor buttonColor READ buttonColor CONSTANT FINAL) |
74 | Q_PROPERTY(QColor buttonPressedColor READ buttonPressedColor CONSTANT FINAL) |
75 | Q_PROPERTY(QColor buttonCheckedColor READ buttonCheckedColor CONSTANT FINAL) |
76 | Q_PROPERTY(QColor buttonCheckedPressedColor READ buttonCheckedPressedColor CONSTANT FINAL) |
77 | Q_PROPERTY(QColor buttonCheckedFocusColor READ buttonCheckedFocusColor CONSTANT FINAL) |
78 | Q_PROPERTY(QColor toolButtonColor READ toolButtonColor CONSTANT FINAL) |
79 | Q_PROPERTY(QColor tabButtonColor READ tabButtonColor CONSTANT FINAL) |
80 | Q_PROPERTY(QColor tabButtonPressedColor READ tabButtonPressedColor CONSTANT FINAL) |
81 | Q_PROPERTY(QColor tabButtonCheckedPressedColor READ tabButtonCheckedPressedColor CONSTANT FINAL) |
82 | Q_PROPERTY(QColor delegateColor READ delegateColor CONSTANT FINAL) |
83 | Q_PROPERTY(QColor delegatePressedColor READ delegatePressedColor CONSTANT FINAL) |
84 | Q_PROPERTY(QColor delegateFocusColor READ delegateFocusColor CONSTANT FINAL) |
85 | Q_PROPERTY(QColor indicatorPressedColor READ indicatorPressedColor CONSTANT FINAL) |
86 | Q_PROPERTY(QColor indicatorDisabledColor READ indicatorDisabledColor CONSTANT FINAL) |
87 | Q_PROPERTY(QColor indicatorFrameColor READ indicatorFrameColor CONSTANT FINAL) |
88 | Q_PROPERTY(QColor indicatorFramePressedColor READ indicatorFramePressedColor CONSTANT FINAL) |
89 | Q_PROPERTY(QColor indicatorFrameDisabledColor READ indicatorFrameDisabledColor CONSTANT FINAL) |
90 | Q_PROPERTY(QColor frameDarkColor READ frameDarkColor CONSTANT FINAL) |
91 | Q_PROPERTY(QColor frameLightColor READ frameLightColor CONSTANT FINAL) |
92 | Q_PROPERTY(QColor scrollBarColor READ scrollBarColor CONSTANT FINAL) |
93 | Q_PROPERTY(QColor scrollBarPressedColor READ scrollBarPressedColor CONSTANT FINAL) |
94 | Q_PROPERTY(QColor progressBarColor READ progressBarColor CONSTANT FINAL) |
95 | Q_PROPERTY(QColor pageIndicatorColor READ pageIndicatorColor CONSTANT FINAL) |
96 | Q_PROPERTY(QColor separatorColor READ separatorColor CONSTANT FINAL) |
97 | Q_PROPERTY(QColor disabledDarkColor READ disabledDarkColor CONSTANT FINAL) |
98 | Q_PROPERTY(QColor disabledLightColor READ disabledLightColor CONSTANT FINAL) |
99 | |
100 | public: |
101 | explicit QQuickDefaultStyle(QObject *parent = nullptr); |
102 | |
103 | QColor backgroundColor() const; |
104 | QColor overlayModalColor() const; |
105 | QColor overlayDimColor() const; |
106 | QColor textColor() const; |
107 | QColor textDarkColor() const; |
108 | QColor textLightColor() const; |
109 | QColor textLinkColor() const; |
110 | QColor textSelectionColor() const; |
111 | QColor textDisabledColor() const; |
112 | QColor textDisabledLightColor() const; |
113 | QColor textPlaceholderColor() const; |
114 | QColor focusColor() const; |
115 | QColor focusLightColor() const; |
116 | QColor focusPressedColor() const; |
117 | QColor buttonColor() const; |
118 | QColor buttonPressedColor() const; |
119 | QColor buttonCheckedColor() const; |
120 | QColor buttonCheckedPressedColor() const; |
121 | QColor buttonCheckedFocusColor() const; |
122 | QColor toolButtonColor() const; |
123 | QColor tabButtonColor() const; |
124 | QColor tabButtonPressedColor() const; |
125 | QColor tabButtonCheckedPressedColor() const; |
126 | QColor delegateColor() const; |
127 | QColor delegatePressedColor() const; |
128 | QColor delegateFocusColor() const; |
129 | QColor indicatorPressedColor() const; |
130 | QColor indicatorDisabledColor() const; |
131 | QColor indicatorFrameColor() const; |
132 | QColor indicatorFramePressedColor() const; |
133 | QColor indicatorFrameDisabledColor() const; |
134 | QColor frameDarkColor() const; |
135 | QColor frameLightColor() const; |
136 | QColor scrollBarColor() const; |
137 | QColor scrollBarPressedColor() const; |
138 | QColor progressBarColor() const; |
139 | QColor pageIndicatorColor() const; |
140 | QColor separatorColor() const; |
141 | QColor disabledDarkColor() const; |
142 | QColor disabledLightColor() const; |
143 | }; |
144 | |
145 | QT_END_NAMESPACE |
146 | |
147 | #endif // QQUICKDEFAULTSTYLE_P_H |
148 | |