aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicknativestyle/util/qquickstyleconstants.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/quicknativestyle/util/qquickstyleconstants.h')
-rw-r--r--src/quicknativestyle/util/qquickstyleconstants.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/quicknativestyle/util/qquickstyleconstants.h b/src/quicknativestyle/util/qquickstyleconstants.h
new file mode 100644
index 0000000000..d2c6379512
--- /dev/null
+++ b/src/quicknativestyle/util/qquickstyleconstants.h
@@ -0,0 +1,30 @@
+// Copyright (C) 2025 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+
+#ifndef QQUICKSTYLECONSTANTS_H
+#define QQUICKSTYLECONSTANTS_H
+
+#include <QtQml/QtQml>
+
+QT_BEGIN_NAMESPACE
+
+class QQuickStyleConstants : public QObject
+{
+ Q_OBJECT
+ Q_PROPERTY(bool runningWithLiquidGlass READ runningWithLiquidGlass CONSTANT FINAL)
+ Q_PROPERTY(QColor secondarySystemFillColor READ secondarySystemFillColor CONSTANT FINAL)
+ Q_PROPERTY(QColor tertiarySystemFillColor READ tertiarySystemFillColor CONSTANT FINAL)
+ QML_NAMED_ELEMENT(StyleConstants)
+ QML_SINGLETON
+
+public:
+ QQuickStyleConstants();
+
+ bool runningWithLiquidGlass() const;
+ QColor secondarySystemFillColor() const;
+ QColor tertiarySystemFillColor() const;
+};
+
+QT_END_NAMESPACE
+
+#endif // QQUICKSTYLECONSTANTS_H