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#include "qquickdefaultstyle_p.h"
38
39QT_BEGIN_NAMESPACE
40
41QQuickDefaultStyle::QQuickDefaultStyle(QObject *parent) :
42 QObject(parent)
43{
44}
45
46QColor QQuickDefaultStyle::backgroundColor() const
47{
48 return QColor::fromRgba(rgba: 0xFFFFFFFF);
49}
50
51QColor QQuickDefaultStyle::overlayModalColor() const
52{
53 return QColor::fromRgba(rgba: 0x7F28282A);
54}
55
56QColor QQuickDefaultStyle::overlayDimColor() const
57{
58 return QColor::fromRgba(rgba: 0x1F28282A);
59}
60
61QColor QQuickDefaultStyle::textColor() const
62{
63 return QColor::fromRgba(rgba: 0xFF353637);
64}
65
66QColor QQuickDefaultStyle::textDarkColor() const
67{
68 return QColor::fromRgba(rgba: 0xFF26282A);
69}
70
71QColor QQuickDefaultStyle::textLightColor() const
72{
73 return QColor::fromRgba(rgba: 0xFFFFFFFF);
74}
75
76QColor QQuickDefaultStyle::textLinkColor() const
77{
78 return QColor::fromRgba(rgba: 0xFF45A7D7);
79}
80
81QColor QQuickDefaultStyle::textSelectionColor() const
82{
83 return QColor::fromRgba(rgba: 0xFFFDDD5C);
84}
85
86QColor QQuickDefaultStyle::textDisabledColor() const
87{
88 return QColor::fromRgba(rgba: 0xFFBDBEBF);
89}
90
91QColor QQuickDefaultStyle::textDisabledLightColor() const
92{
93 return QColor::fromRgba(rgba: 0xFFC2C2C2);
94}
95
96QColor QQuickDefaultStyle::textPlaceholderColor() const
97{
98 return QColor::fromRgba(rgba: 0xFF777777);
99}
100
101QColor QQuickDefaultStyle::focusColor() const
102{
103 return QColor::fromRgba(rgba: 0xFF0066FF);
104}
105
106QColor QQuickDefaultStyle::focusLightColor() const
107{
108 return QColor::fromRgba(rgba: 0xFFF0F6FF);
109}
110
111QColor QQuickDefaultStyle::focusPressedColor() const
112{
113 return QColor::fromRgba(rgba: 0xFFCCE0FF);
114}
115
116QColor QQuickDefaultStyle::buttonColor() const
117{
118 return QColor::fromRgba(rgba: 0xFFE0E0E0);
119}
120
121QColor QQuickDefaultStyle::buttonPressedColor() const
122{
123 return QColor::fromRgba(rgba: 0xFFD0D0D0);
124}
125
126QColor QQuickDefaultStyle::buttonCheckedColor() const
127{
128 return QColor::fromRgba(rgba: 0xFF353637);
129}
130
131QColor QQuickDefaultStyle::buttonCheckedPressedColor() const
132{
133 return QColor::fromRgba(rgba: 0xFF585A5C);
134}
135
136QColor QQuickDefaultStyle::buttonCheckedFocusColor() const
137{
138 return QColor::fromRgba(rgba: 0xFF599BFF);
139}
140
141QColor QQuickDefaultStyle::toolButtonColor() const
142{
143 return QColor::fromRgba(rgba: 0x33333333);
144}
145
146QColor QQuickDefaultStyle::tabButtonColor() const
147{
148 return QColor::fromRgba(rgba: 0xFF353637);
149}
150
151QColor QQuickDefaultStyle::tabButtonPressedColor() const
152{
153 return QColor::fromRgba(rgba: 0xFF585A5C);
154}
155
156QColor QQuickDefaultStyle::tabButtonCheckedPressedColor() const
157{
158 return QColor::fromRgba(rgba: 0xFFE4E4E4);
159}
160
161QColor QQuickDefaultStyle::delegateColor() const
162{
163 return QColor::fromRgba(rgba: 0xFFEEEEEE);
164}
165
166QColor QQuickDefaultStyle::delegatePressedColor() const
167{
168 return QColor::fromRgba(rgba: 0xFFBDBEBF);
169}
170
171QColor QQuickDefaultStyle::delegateFocusColor() const
172{
173 return QColor::fromRgba(rgba: 0xFFE5EFFF);
174}
175
176QColor QQuickDefaultStyle::indicatorPressedColor() const
177{
178 return QColor::fromRgba(rgba: 0xFFF6F6F6);
179}
180
181QColor QQuickDefaultStyle::indicatorDisabledColor() const
182{
183 return QColor::fromRgba(rgba: 0xFFFDFDFD);
184}
185
186QColor QQuickDefaultStyle::indicatorFrameColor() const
187{
188 return QColor::fromRgba(rgba: 0xFF909090);
189}
190
191QColor QQuickDefaultStyle::indicatorFramePressedColor() const
192{
193 return QColor::fromRgba(rgba: 0xFF808080);
194}
195
196QColor QQuickDefaultStyle::indicatorFrameDisabledColor() const
197{
198 return QColor::fromRgba(rgba: 0xFFD6D6D6);
199}
200
201QColor QQuickDefaultStyle::frameDarkColor() const
202{
203 return QColor::fromRgba(rgba: 0xFF353637);
204}
205
206QColor QQuickDefaultStyle::frameLightColor() const
207{
208 return QColor::fromRgba(rgba: 0xFFBDBEBF);
209}
210
211QColor QQuickDefaultStyle::scrollBarColor() const
212{
213 return QColor::fromRgba(rgba: 0xFFBDBEBF);
214}
215
216QColor QQuickDefaultStyle::scrollBarPressedColor() const
217{
218 return QColor::fromRgba(rgba: 0xFF28282A);
219}
220
221QColor QQuickDefaultStyle::progressBarColor() const
222{
223 return QColor::fromRgba(rgba: 0xFFE4E4E4);
224}
225
226QColor QQuickDefaultStyle::pageIndicatorColor() const
227{
228 return QColor::fromRgba(rgba: 0xFF28282A);
229}
230
231QColor QQuickDefaultStyle::separatorColor() const
232{
233 return QColor::fromRgba(rgba: 0xFFCCCCCC);
234}
235
236QColor QQuickDefaultStyle::disabledDarkColor() const
237{
238 return QColor::fromRgba(rgba: 0xFF353637);
239}
240
241QColor QQuickDefaultStyle::disabledLightColor() const
242{
243 return QColor::fromRgba(rgba: 0xFFBDBEBF);
244}
245
246QT_END_NAMESPACE
247

source code of qtquickcontrols2/src/imports/controls/qquickdefaultstyle.cpp