1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKBASICSTYLE_P_H
5#define QQUICKBASICSTYLE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/qobject.h>
19#include <QtGui/qcolor.h>
20#include <QtQml/qqml.h>
21#include <QtCore/private/qglobal_p.h>
22
23QT_BEGIN_NAMESPACE
24
25class QQuickBasicStyle : public QObject
26{
27 Q_OBJECT
28 Q_PROPERTY(QColor backgroundColor READ backgroundColor CONSTANT FINAL)
29 Q_PROPERTY(QColor overlayModalColor READ overlayModalColor CONSTANT FINAL)
30 Q_PROPERTY(QColor overlayDimColor READ overlayDimColor CONSTANT FINAL)
31 Q_PROPERTY(QColor textColor READ textColor CONSTANT FINAL)
32 Q_PROPERTY(QColor textDarkColor READ textDarkColor CONSTANT FINAL)
33 Q_PROPERTY(QColor textLightColor READ textLightColor CONSTANT FINAL)
34 Q_PROPERTY(QColor textLinkColor READ textLinkColor CONSTANT FINAL)
35 Q_PROPERTY(QColor textSelectionColor READ textSelectionColor CONSTANT FINAL)
36 Q_PROPERTY(QColor textDisabledColor READ textDisabledColor CONSTANT FINAL)
37 Q_PROPERTY(QColor textDisabledLightColor READ textDisabledLightColor CONSTANT FINAL)
38 Q_PROPERTY(QColor textPlaceholderColor READ textPlaceholderColor CONSTANT FINAL)
39 Q_PROPERTY(QColor focusColor READ focusColor CONSTANT FINAL)
40 Q_PROPERTY(QColor focusLightColor READ focusLightColor CONSTANT FINAL)
41 Q_PROPERTY(QColor focusPressedColor READ focusPressedColor CONSTANT FINAL)
42 Q_PROPERTY(QColor buttonColor READ buttonColor CONSTANT FINAL)
43 Q_PROPERTY(QColor buttonPressedColor READ buttonPressedColor CONSTANT FINAL)
44 Q_PROPERTY(QColor buttonCheckedColor READ buttonCheckedColor CONSTANT FINAL)
45 Q_PROPERTY(QColor buttonCheckedPressedColor READ buttonCheckedPressedColor CONSTANT FINAL)
46 Q_PROPERTY(QColor buttonCheckedFocusColor READ buttonCheckedFocusColor CONSTANT FINAL)
47 Q_PROPERTY(QColor toolButtonColor READ toolButtonColor CONSTANT FINAL)
48 Q_PROPERTY(QColor tabButtonColor READ tabButtonColor CONSTANT FINAL)
49 Q_PROPERTY(QColor tabButtonPressedColor READ tabButtonPressedColor CONSTANT FINAL)
50 Q_PROPERTY(QColor tabButtonCheckedPressedColor READ tabButtonCheckedPressedColor CONSTANT FINAL)
51 Q_PROPERTY(QColor delegateColor READ delegateColor CONSTANT FINAL)
52 Q_PROPERTY(QColor delegatePressedColor READ delegatePressedColor CONSTANT FINAL)
53 Q_PROPERTY(QColor delegateFocusColor READ delegateFocusColor CONSTANT FINAL)
54 Q_PROPERTY(QColor indicatorPressedColor READ indicatorPressedColor CONSTANT FINAL)
55 Q_PROPERTY(QColor indicatorDisabledColor READ indicatorDisabledColor CONSTANT FINAL)
56 Q_PROPERTY(QColor indicatorFrameColor READ indicatorFrameColor CONSTANT FINAL)
57 Q_PROPERTY(QColor indicatorFramePressedColor READ indicatorFramePressedColor CONSTANT FINAL)
58 Q_PROPERTY(QColor indicatorFrameDisabledColor READ indicatorFrameDisabledColor CONSTANT FINAL)
59 Q_PROPERTY(QColor frameDarkColor READ frameDarkColor CONSTANT FINAL)
60 Q_PROPERTY(QColor frameLightColor READ frameLightColor CONSTANT FINAL)
61 Q_PROPERTY(QColor scrollBarColor READ scrollBarColor CONSTANT FINAL)
62 Q_PROPERTY(QColor scrollBarPressedColor READ scrollBarPressedColor CONSTANT FINAL)
63 Q_PROPERTY(QColor progressBarColor READ progressBarColor CONSTANT FINAL)
64 Q_PROPERTY(QColor pageIndicatorColor READ pageIndicatorColor CONSTANT FINAL)
65 Q_PROPERTY(QColor separatorColor READ separatorColor CONSTANT FINAL)
66 Q_PROPERTY(QColor disabledDarkColor READ disabledDarkColor CONSTANT FINAL)
67 Q_PROPERTY(QColor disabledLightColor READ disabledLightColor CONSTANT FINAL)
68 QML_NAMED_ELEMENT(Basic)
69 QML_SINGLETON
70 QML_ADDED_IN_VERSION(2, 1)
71
72public:
73 explicit QQuickBasicStyle(QObject *parent = nullptr);
74
75 QColor backgroundColor() const;
76 QColor overlayModalColor() const;
77 QColor overlayDimColor() const;
78 QColor textColor() const;
79 QColor textDarkColor() const;
80 QColor textLightColor() const;
81 QColor textLinkColor() const;
82 QColor textSelectionColor() const;
83 QColor textDisabledColor() const;
84 QColor textDisabledLightColor() const;
85 QColor textPlaceholderColor() const;
86 QColor focusColor() const;
87 QColor focusLightColor() const;
88 QColor focusPressedColor() const;
89 QColor buttonColor() const;
90 QColor buttonPressedColor() const;
91 QColor buttonCheckedColor() const;
92 QColor buttonCheckedPressedColor() const;
93 QColor buttonCheckedFocusColor() const;
94 QColor toolButtonColor() const;
95 QColor tabButtonColor() const;
96 QColor tabButtonPressedColor() const;
97 QColor tabButtonCheckedPressedColor() const;
98 QColor delegateColor() const;
99 QColor delegatePressedColor() const;
100 QColor delegateFocusColor() const;
101 QColor indicatorPressedColor() const;
102 QColor indicatorDisabledColor() const;
103 QColor indicatorFrameColor() const;
104 QColor indicatorFramePressedColor() const;
105 QColor indicatorFrameDisabledColor() const;
106 QColor frameDarkColor() const;
107 QColor frameLightColor() const;
108 QColor scrollBarColor() const;
109 QColor scrollBarPressedColor() const;
110 QColor progressBarColor() const;
111 QColor pageIndicatorColor() const;
112 QColor separatorColor() const;
113 QColor disabledDarkColor() const;
114 QColor disabledLightColor() const;
115};
116
117QT_END_NAMESPACE
118
119#endif // QQUICKBASICSTYLE_P_H
120

source code of qtdeclarative/src/quickcontrols/basic/qquickbasicstyle_p.h