aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicknativestyle/util/qquickstyleconstants.h
blob: d2c6379512cba29e1812b8094f820b540daa98c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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