Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickstyleconstants.h
Go to the documentation of this file.
1// Copyright (C) 2025 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 QQUICKSTYLECONSTANTS_H
5#define QQUICKSTYLECONSTANTS_H
6
7#include <QtQml/QtQml>
8
9QT_BEGIN_NAMESPACE
10
11class QQuickStyleConstants : public QObject
12{
13 Q_OBJECT
14 Q_PROPERTY(bool runningWithLiquidGlass READ runningWithLiquidGlass CONSTANT FINAL)
15 Q_PROPERTY(QColor secondarySystemFillColor READ secondarySystemFillColor CONSTANT FINAL)
16 Q_PROPERTY(QColor tertiarySystemFillColor READ tertiarySystemFillColor CONSTANT FINAL)
17 QML_NAMED_ELEMENT(StyleConstants)
18 QML_SINGLETON
19
20public:
21 QQuickStyleConstants();
22
23 bool runningWithLiquidGlass() const;
24 QColor secondarySystemFillColor() const;
25 QColor tertiarySystemFillColor() const;
26};
27
29
30#endif // QQUICKSTYLECONSTANTS_H