18#include <QtQml/QQmlEngine>
19#include <QtQuickControls2/QQuickAttachedPropertyPropagator>
21class Style :
public QQuickAttachedPropertyPropagator
84 QML_NAMED_ELEMENT(
Style)
87 QML_ADDED_IN_VERSION(2, 0)
96 explicit Style(QObject *parent =
nullptr);
167 QQuickAttachedPropertyPropagator *oldParent)
override;
171 bool m_explicitTheme =
false;
174 bool m_systemTheme =
false;
179 void propagateTheme();
QColor outlineVariantColor
Definition style.h:71
void attachedParentChange(QQuickAttachedPropertyPropagator *newParent, QQuickAttachedPropertyPropagator *oldParent) override
Definition style.cpp:252
void setTheme(Theme theme)
Definition style.cpp:40
QColor tertiaryContainerColor
Definition style.h:48
QColor errorContainerColor
Definition style.h:55
QColor onSurfaceColor
Definition style.h:64
QColor surfaceTintColor
Definition style.h:67
QColor surfaceVariantColor
Definition style.h:65
QColor onSurfaceVariantColor
Definition style.h:66
Theme theme
Definition style.h:26
static Style * qmlAttachedProperties(QObject *object)
Definition style.cpp:247
QColor scrimColor
Definition style.h:79
int elevation
Definition style.h:28
QColor onSecondaryContainerColor
Definition style.h:43
QColor surfaceColor
Definition style.h:63
QColor errorColor
Definition style.h:53
QColor inversePrimaryColor
Definition style.h:76
QColor onSecondaryColor
Definition style.h:39
QColor inverseSurfaceColor
Definition style.h:74
QColor tertiaryColor
Definition style.h:46
Theme
Definition style.h:89
@ System
Definition style.h:92
@ Light
Definition style.h:90
@ Dark
Definition style.h:91
QColor onPrimaryContainerColor
Definition style.h:35
void resetTheme()
Definition style.cpp:58
QColor secondaryContainerColor
Definition style.h:41
QColor onBackgroundColor
Definition style.h:60
QColor onErrorContainerColor
Definition style.h:56
QColor outlineColor
Definition style.h:70
static Theme effectiveTheme(Theme theme)
Definition style.cpp:274
QColor backgroundColor
Definition style.h:59
void setElevation(int elevation)
Definition style.cpp:74
QColor secondaryColor
Definition style.h:38
QColor onTertiaryContainerColor
Definition style.h:50
QColor onTertiaryColor
Definition style.h:47
QColor inverseOnSurfaceColor
Definition style.h:75
void resetElevation()
Definition style.cpp:82
static bool isDarkSystemTheme()
Definition style.cpp:263
QColor onPrimaryColor
Definition style.h:32
QColor shadowColor
Definition style.h:82
QColor primaryContainerColor
Definition style.h:33
QColor onErrorColor
Definition style.h:54
QColor primaryColor
Definition style.h:31