Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickfusionstyle_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 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 QQUICKFUSIONSTYLE_P_H
5#define QQUICKFUSIONSTYLE_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 <QtQuick/private/qquickpalette_p.h>
22
24
26{
28 Q_PROPERTY(QColor lightShade READ lightShade CONSTANT FINAL)
29 Q_PROPERTY(QColor darkShade READ darkShade CONSTANT FINAL)
30 Q_PROPERTY(QColor topShadow READ topShadow CONSTANT FINAL)
32 QML_NAMED_ELEMENT(Fusion)
35
36public:
37 explicit QQuickFusionStyle(QObject *parent = nullptr);
38
40 static QColor darkShade();
41 static QColor topShadow();
43
49 Q_INVOKABLE static QColor buttonColor(QQuickPalette *palette, bool highlighted = false, bool down = false, bool hovered = false);
50 Q_INVOKABLE static QColor buttonOutline(QQuickPalette *palette, bool highlighted = false, bool enabled = true);
51 Q_INVOKABLE static QColor gradientStart(const QColor &baseColor);
52 Q_INVOKABLE static QColor gradientStop(const QColor &baseColor);
53 Q_INVOKABLE static QColor mergedColors(const QColor &colorA, const QColor &colorB, int factor = 50);
55};
56
58
59#endif // QQUICKFUSIONSTYLE_P_H
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31
\inmodule QtCore
Definition qobject.h:90
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:311
static Q_INVOKABLE QColor highlight(QQuickPalette *palette)
static Q_INVOKABLE QColor mergedColors(const QColor &colorA, const QColor &colorB, int factor=50)
static QColor darkShade()
static Q_INVOKABLE QColor outline(QQuickPalette *palette)
static Q_INVOKABLE QColor highlightedOutline(QQuickPalette *palette)
static QColor lightShade()
static Q_INVOKABLE QColor tabFrameColor(QQuickPalette *palette)
static Q_INVOKABLE QColor gradientStop(const QColor &baseColor)
static QColor topShadow()
static Q_INVOKABLE QColor buttonOutline(QQuickPalette *palette, bool highlighted=false, bool enabled=true)
static Q_INVOKABLE QColor highlightedText(QQuickPalette *palette)
static Q_INVOKABLE QColor grooveColor(QQuickPalette *palette)
static Q_INVOKABLE QColor buttonColor(QQuickPalette *palette, bool highlighted=false, bool down=false, bool hovered=false)
static Q_INVOKABLE QColor gradientStart(const QColor &baseColor)
static QColor innerContrastLine()
Contains color groups for each QML item state. \inmodule QtQuick.
Combined button and popup list for selecting options.
GLenum GLenum GLsizei const GLuint GLboolean enabled
#define QML_NAMED_ELEMENT(NAME)
#define QML_SINGLETON
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_INVOKABLE