aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicknativestyle/util/qquickstyleconstants.h
blob: 5a966e3100d32df3d152d0af9d3ca4c8fba24aab (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
31
32
33
34
// 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 NOTIFY secondarySystemFillColorChanged FINAL)
    Q_PROPERTY(QColor tertiarySystemFillColor READ tertiarySystemFillColor NOTIFY tertiarySystemFillColorChanged FINAL)
    QML_NAMED_ELEMENT(StyleConstants)
    QML_SINGLETON

public:
    QQuickStyleConstants();

    bool runningWithLiquidGlass() const;
    QColor secondarySystemFillColor() const;
    QColor tertiarySystemFillColor() const;

Q_SIGNALS:
    void secondarySystemFillColorChanged();
    void tertiarySystemFillColorChanged();
};

QT_END_NAMESPACE

#endif // QQUICKSTYLECONSTANTS_H