![]() |
Qt 6.x
The Qt SDK
|
#include <qquickmaterialstyle_p.h>
Public Types | |
enum | Theme { Light , Dark , System } |
enum | Variant { Normal , Dense } |
enum | Color { Red , Pink , Purple , DeepPurple , Indigo , Blue , LightBlue , Cyan , Teal , Green , LightGreen , Lime , Yellow , Amber , Orange , DeepOrange , Brown , Grey , BlueGrey } |
enum | Shade { Shade50 , Shade100 , Shade200 , Shade300 , Shade400 , Shade500 , Shade600 , Shade700 , Shade800 , Shade900 , ShadeA100 , ShadeA200 , ShadeA400 , ShadeA700 } |
enum class | RoundedScale { NotRounded , ExtraSmallScale = 4 , SmallScale = 8 , MediumScale = 12 , LargeScale = 16 , ExtraLargeScale = 28 , FullScale = 0xFF } |
enum class | ContainerStyle { Filled , Outlined } |
Signals | |
void | themeChanged () |
void | primaryChanged () |
void | accentChanged () |
void | foregroundChanged () |
void | backgroundChanged () |
void | elevationChanged () |
void | themeOrAccentChanged () |
void | primaryHighlightedTextColorChanged () |
void | dialogColorChanged () |
void | tooltipColorChanged () |
void | toolBarColorChanged () |
void | toolTextColorChanged () |
void | roundedScaleChanged () |
void | containerStyleChanged () |
![]() | |
void | destroyed (QObject *=nullptr) |
This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked. | |
void | objectNameChanged (const QString &objectName, QPrivateSignal) |
This signal is emitted after the object's name has been changed. | |
Public Member Functions | |
QQuickMaterialStyle (QObject *parent=nullptr) | |
Theme | theme () const |
void | setTheme (Theme theme) |
void | inheritTheme (Theme theme) |
void | propagateTheme () |
void | resetTheme () |
void | themeChange () |
QVariant | primary () const |
void | setPrimary (const QVariant &accent) |
void | inheritPrimary (uint primary, bool custom) |
void | propagatePrimary () |
void | resetPrimary () |
void | primaryChange () |
QVariant | accent () const |
void | setAccent (const QVariant &accent) |
void | inheritAccent (uint accent, bool custom) |
void | propagateAccent () |
void | resetAccent () |
void | accentChange () |
QVariant | foreground () const |
void | setForeground (const QVariant &foreground) |
void | inheritForeground (uint foreground, bool custom, bool has) |
void | propagateForeground () |
void | resetForeground () |
void | foregroundChange () |
QVariant | background () const |
void | setBackground (const QVariant &background) |
void | inheritBackground (uint background, bool custom, bool has) |
void | propagateBackground () |
void | resetBackground () |
void | backgroundChange () |
int | elevation () const |
void | setElevation (int elevation) |
void | resetElevation () |
void | elevationChange () |
RoundedScale | roundedScale () const |
void | setRoundedScale (RoundedScale roundedScale) |
void | resetRoundedScale () |
ContainerStyle | containerStyle () const |
void | setContainerStyle (ContainerStyle containerStyle) |
void | resetContainerStyle () |
QColor | primaryColor () const |
QColor | accentColor () const |
QColor | backgroundColor () const |
QColor | primaryTextColor () const |
QColor | primaryHighlightedTextColor () const |
QColor | secondaryTextColor () const |
QColor | hintTextColor () const |
QColor | textSelectionColor () const |
QColor | dropShadowColor () const |
QColor | dividerColor () const |
QColor | iconColor () const |
QColor | iconDisabledColor () const |
Q_INVOKABLE QColor | buttonColor (Theme theme, const QVariant &background, const QVariant &accent, bool enabled, bool flat, bool highlighted, bool checked) const |
QColor | frameColor () const |
QColor | rippleColor () const |
QColor | highlightedRippleColor () const |
QColor | switchUncheckedTrackColor () const |
QColor | switchCheckedTrackColor () const |
QColor | switchDisabledUncheckedTrackColor () const |
QColor | switchDisabledCheckedTrackColor () const |
QColor | switchDisabledUncheckedTrackBorderColor () const |
QColor | switchUncheckedHandleColor () const |
QColor | switchUncheckedHoveredHandleColor () const |
QColor | switchCheckedHandleColor () const |
QColor | switchDisabledUncheckedHandleColor () const |
QColor | switchDisabledCheckedHandleColor () const |
QColor | switchDisabledCheckedIconColor () const |
QColor | switchDisabledUncheckedIconColor () const |
QColor | scrollBarColor () const |
QColor | scrollBarHoveredColor () const |
QColor | scrollBarPressedColor () const |
QColor | dialogColor () const |
QColor | backgroundDimColor () const |
QColor | listHighlightColor () const |
QColor | tooltipColor () const |
QColor | toolBarColor () const |
QColor | toolTextColor () const |
QColor | spinBoxDisabledIconColor () const |
QColor | sliderDisabledColor () const |
QColor | textFieldFilledContainerColor () const |
Q_INVOKABLE QColor | color (Color color, Shade shade=Shade500) const |
Q_INVOKABLE QColor | shade (const QColor &color, Shade shade) const |
int | touchTarget () const |
int | buttonHeight () const |
int | delegateHeight () const |
int | dialogButtonBoxHeight () const |
int | frameVerticalPadding () const |
int | menuItemHeight () const |
int | menuItemVerticalPadding () const |
int | switchDelegateVerticalPadding () const |
int | textFieldHeight () const |
int | textFieldHorizontalPadding () const |
int | textFieldVerticalPadding () const |
int | tooltipHeight () const |
![]() | |
QQuickAttachedPropertyPropagator (QObject *parent=nullptr) | |
Constructs a QQuickAttachedPropertyPropagator with the given parent. | |
~QQuickAttachedPropertyPropagator () | |
Destroys the QQuickAttachedPropertyPropagator. | |
QList< QQuickAttachedPropertyPropagator * > | attachedChildren () const |
This function returns the attached children of this attached object. | |
QQuickAttachedPropertyPropagator * | attachedParent () const |
This function returns the attached parent of this attached object. | |
![]() | |
Q_INVOKABLE | QObject (QObject *parent=nullptr) |
Constructs an object with parent object parent. | |
virtual | ~QObject () |
Destroys the object, deleting all its child objects. | |
virtual bool | event (QEvent *event) |
This virtual function receives events to an object and should return true if the event e was recognized and processed. | |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
Filters events if this object has been installed as an event filter for the watched object. | |
QString | objectName () const |
Q_WEAK_OVERLOAD void | setObjectName (const QString &name) |
Sets the object's name to name. | |
void | setObjectName (QAnyStringView name) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
QBindable< QString > | bindableObjectName () |
bool | isWidgetType () const |
Returns true if the object is a widget; otherwise returns false . | |
bool | isWindowType () const |
Returns true if the object is a window; otherwise returns false . | |
bool | isQuickItemType () const |
Returns true if the object is a QQuickItem; otherwise returns false . | |
bool | signalsBlocked () const noexcept |
Returns true if signals are blocked; otherwise returns false . | |
bool | blockSignals (bool b) noexcept |
If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). | |
QThread * | thread () const |
Returns the thread in which the object lives. | |
void | moveToThread (QThread *thread) |
Changes the thread affinity for this object and its children. | |
int | startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer) |
This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds. | |
int | startTimer (std::chrono::milliseconds time, Qt::TimerType timerType=Qt::CoarseTimer) |
void | killTimer (int id) |
Kills the timer with timer identifier, id. | |
template<typename T > | |
T | findChild (const QString &aName=QString(), Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object. | |
template<typename T > | |
QList< T > | findChildren (const QString &aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. | |
template<typename T > | |
QList< T > | findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
const QObjectList & | children () const |
Returns a list of child objects. | |
void | setParent (QObject *parent) |
Makes the object a child of parent. | |
void | installEventFilter (QObject *filterObj) |
Installs an event filter filterObj on this object. | |
void | removeEventFilter (QObject *obj) |
Removes an event filter object obj from this object. | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const |
bool | disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const |
bool | disconnect (const QObject *receiver, const char *member=nullptr) const |
void | dumpObjectTree () const |
Dumps a tree of children to the debug output. | |
void | dumpObjectInfo () const |
Dumps information about signal connections, etc. | |
bool | setProperty (const char *name, const QVariant &value) |
Sets the value of the object's name property to value. | |
bool | setProperty (const char *name, QVariant &&value) |
QVariant | property (const char *name) const |
Returns the value of the object's name property. | |
QList< QByteArray > | dynamicPropertyNames () const |
QBindingStorage * | bindingStorage () |
const QBindingStorage * | bindingStorage () const |
QObject * | parent () const |
Returns a pointer to the parent object. | |
bool | inherits (const char *classname) const |
Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false . | |
Static Public Member Functions | |
static QQuickMaterialStyle * | qmlAttachedProperties (QObject *object) |
static void | initGlobals () |
static Variant | variant () |
![]() | |
static QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection) |
\threadsafe | |
static QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot) |
static bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) |
\threadsafe | |
static bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member) |
static bool | disconnect (const QMetaObject::Connection &) |
Disconnect a connection. | |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot) |
template<typename Func1 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero) |
Protected Member Functions | |
void | attachedParentChange (QQuickAttachedPropertyPropagator *newParent, QQuickAttachedPropertyPropagator *oldParent) override |
This function is called whenever the attached parent of this QQuickAttachedPropertyPropagator changes from oldParent to newParent. | |
![]() | |
void | initialize () |
Finds and sets the attached parent for this attached object, and then does the same for its children. | |
virtual void | attachedParentChange (QQuickAttachedPropertyPropagator *newParent, QQuickAttachedPropertyPropagator *oldParent) |
This function is called whenever the attached parent of this QQuickAttachedPropertyPropagator changes from oldParent to newParent. | |
![]() | |
QObject * | sender () const |
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr. | |
int | senderSignalIndex () const |
int | receivers (const char *signal) const |
Returns the number of receivers connected to the signal. | |
bool | isSignalConnected (const QMetaMethod &signal) const |
virtual void | timerEvent (QTimerEvent *event) |
This event handler can be reimplemented in a subclass to receive timer events for the object. | |
virtual void | childEvent (QChildEvent *event) |
This event handler can be reimplemented in a subclass to receive child events. | |
virtual void | customEvent (QEvent *event) |
This event handler can be reimplemented in a subclass to receive custom events. | |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
QObject (QObjectPrivate &dd, QObject *parent=nullptr) | |
Additional Inherited Members | |
![]() | |
void | deleteLater () |
\threadsafe | |
![]() | |
QScopedPointer< QObjectData > | d_ptr |
![]() | |
template< class T > T | qobject_cast (const QObject *object) |
Returns the given object cast to type T if the object is of type T (or of a subclass); otherwise returns \nullptr. | |
template< typename T > T | qFindChildqFindChildren (const QObject *obj, const QString &name)() |
template< typename T > QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QString &name)() |
QObjectList | |
\macro Q_CLASSINFO(Name, Value) | |
Definition at line 24 of file qquickmaterialstyle_p.h.
Enumerator | |
---|---|
Red | |
Pink | |
Purple | |
DeepPurple | |
Indigo | |
Blue | |
LightBlue | |
Cyan | |
Teal | |
Green | |
LightGreen | |
Lime | |
Yellow | |
Amber | |
Orange | |
DeepOrange | |
Brown | |
Grey | |
BlueGrey |
Definition at line 108 of file qquickmaterialstyle_p.h.
|
strong |
Enumerator | |
---|---|
Filled | |
Outlined |
Definition at line 157 of file qquickmaterialstyle_p.h.
|
strong |
Enumerator | |
---|---|
NotRounded | |
ExtraSmallScale | |
SmallScale | |
MediumScale | |
LargeScale | |
ExtraLargeScale | |
FullScale |
Definition at line 147 of file qquickmaterialstyle_p.h.
Enumerator | |
---|---|
Shade50 | |
Shade100 | |
Shade200 | |
Shade300 | |
Shade400 | |
Shade500 | |
Shade600 | |
Shade700 | |
Shade800 | |
Shade900 | |
ShadeA100 | |
ShadeA200 | |
ShadeA400 | |
ShadeA700 |
Definition at line 130 of file qquickmaterialstyle_p.h.
Enumerator | |
---|---|
Light | |
Dark | |
System |
Definition at line 97 of file qquickmaterialstyle_p.h.
Enumerator | |
---|---|
Normal | |
Dense |
Definition at line 103 of file qquickmaterialstyle_p.h.
Definition at line 437 of file qquickmaterialstyle.cpp.
References QQuickAttachedPropertyPropagator::initialize().
QVariant QQuickMaterialStyle::accent | ( | ) | const |
Definition at line 594 of file qquickmaterialstyle.cpp.
References accentColor.
void QQuickMaterialStyle::accentChange | ( | ) |
Definition at line 651 of file qquickmaterialstyle.cpp.
References accentChanged(), emit, and themeOrAccentChanged().
Referenced by inheritAccent(), inheritTheme(), setAccent(), and setTheme().
|
signal |
QColor QQuickMaterialStyle::accentColor | ( | ) | const |
Definition at line 874 of file qquickmaterialstyle.cpp.
References accentColor.
|
overrideprotectedvirtual |
This function is called whenever the attached parent of this QQuickAttachedPropertyPropagator changes from oldParent to newParent.
Subclasses should reimplement this function to inherit attached properties from newParent
.
\quotefromfile ../../examples/quickcontrols/attachedstyleproperties/MyStyle/mystyle.cpp \skipto attachedParentChange \printuntil } \printuntil }
Reimplemented from QQuickAttachedPropertyPropagator.
Definition at line 1439 of file qquickmaterialstyle.cpp.
References inheritAccent(), inheritBackground(), inheritForeground(), inheritPrimary(), inheritTheme(), Q_UNUSED, and theme.
QVariant QQuickMaterialStyle::background | ( | ) | const |
Definition at line 728 of file qquickmaterialstyle.cpp.
References backgroundColor.
void QQuickMaterialStyle::backgroundChange | ( | ) |
Definition at line 785 of file qquickmaterialstyle.cpp.
References backgroundChanged(), dialogColorChanged(), emit, toolBarColorChanged(), and tooltipColorChanged().
Referenced by inheritBackground(), inheritTheme(), setBackground(), and setTheme().
|
signal |
QColor QQuickMaterialStyle::backgroundColor | ( | ) | const |
Definition at line 891 of file qquickmaterialstyle.cpp.
References backgroundColor.
QColor QQuickMaterialStyle::backgroundDimColor | ( | ) | const |
Definition at line 1096 of file qquickmaterialstyle.cpp.
References QColor::fromRgba(), and Light.
QColor QQuickMaterialStyle::buttonColor | ( | Theme | theme, |
const QVariant & | background, | ||
const QVariant & | accent, | ||
bool | enabled, | ||
bool | flat, | ||
bool | highlighted, | ||
bool | checked | ||
) | const |
Definition at line 945 of file qquickmaterialstyle.cpp.
References accent, accentColor, background, backgroundColor, QColor::fromRgba(), Light, Q_UNUSED, raisedButtonColorDark, raisedButtonColorLight, raisedButtonDisabledColorDark, raisedButtonDisabledColorLight, shade(), Shade100, theme, and Qt::transparent.
int QQuickMaterialStyle::buttonHeight | ( | ) | const |
Definition at line 1272 of file qquickmaterialstyle.cpp.
References Dense, and globalVariant.
QColor QQuickMaterialStyle::color | ( | QQuickMaterialStyle::Color | color, |
QQuickMaterialStyle::Shade | shade = Shade500 |
||
) | const |
Definition at line 1171 of file qquickmaterialstyle.cpp.
References colors, and shade().
QQuickMaterialStyle::ContainerStyle QQuickMaterialStyle::containerStyle | ( | ) | const |
Definition at line 836 of file qquickmaterialstyle.cpp.
|
signal |
int QQuickMaterialStyle::delegateHeight | ( | ) | const |
Definition at line 1278 of file qquickmaterialstyle.cpp.
References Dense, and globalVariant.
int QQuickMaterialStyle::dialogButtonBoxHeight | ( | ) | const |
Definition at line 1284 of file qquickmaterialstyle.cpp.
References Dense, and globalVariant.
QColor QQuickMaterialStyle::dialogColor | ( | ) | const |
Definition at line 1089 of file qquickmaterialstyle.cpp.
References backgroundColor, dialogColorDark, dialogColorLight, QColor::fromRgba(), and Light.
|
signal |
QColor QQuickMaterialStyle::dividerColor | ( | ) | const |
Definition at line 930 of file qquickmaterialstyle.cpp.
References dividerColorDark, dividerColorLight, QColor::fromRgba(), and Light.
QColor QQuickMaterialStyle::dropShadowColor | ( | ) | const |
Definition at line 925 of file qquickmaterialstyle.cpp.
References QColor::fromRgba().
int QQuickMaterialStyle::elevation | ( | ) | const |
Definition at line 793 of file qquickmaterialstyle.cpp.
void QQuickMaterialStyle::elevationChange | ( | ) |
Definition at line 812 of file qquickmaterialstyle.cpp.
References elevationChanged(), and emit.
Referenced by setElevation().
|
signal |
QVariant QQuickMaterialStyle::foreground | ( | ) | const |
Definition at line 657 of file qquickmaterialstyle.cpp.
References BlueGrey, colors, QColor::fromRgba(), Light, primaryTextColorDark, primaryTextColorLight, and Shade500.
void QQuickMaterialStyle::foregroundChange | ( | ) |
Definition at line 720 of file qquickmaterialstyle.cpp.
References emit, foregroundChanged(), and primaryHighlightedTextColorChanged().
Referenced by inheritForeground(), inheritTheme(), setForeground(), and setTheme().
|
signal |
QColor QQuickMaterialStyle::frameColor | ( | ) | const |
Definition at line 987 of file qquickmaterialstyle.cpp.
References frameColorDark, frameColorLight, QColor::fromRgba(), and Light.
int QQuickMaterialStyle::frameVerticalPadding | ( | ) | const |
Definition at line 1289 of file qquickmaterialstyle.cpp.
References Dense, and globalVariant.
QColor QQuickMaterialStyle::highlightedRippleColor | ( | ) | const |
Definition at line 997 of file qquickmaterialstyle.cpp.
References accentColor, Light, and QColor::setAlpha().
QColor QQuickMaterialStyle::hintTextColor | ( | ) | const |
Definition at line 913 of file qquickmaterialstyle.cpp.
References QColor::fromRgba(), hintTextColorDark, hintTextColorLight, and Light.
QColor QQuickMaterialStyle::iconColor | ( | ) | const |
Definition at line 935 of file qquickmaterialstyle.cpp.
References QColor::fromRgba(), iconColorDark, iconColorLight, and Light.
QColor QQuickMaterialStyle::iconDisabledColor | ( | ) | const |
Definition at line 940 of file qquickmaterialstyle.cpp.
References QColor::fromRgba(), iconDisabledColorDark, iconDisabledColorLight, and Light.
Definition at line 616 of file qquickmaterialstyle.cpp.
References accent, accentChange(), and propagateAccent().
Referenced by attachedParentChange(), propagateAccent(), and resetAccent().
Definition at line 751 of file qquickmaterialstyle.cpp.
References background, backgroundChange(), and propagateBackground().
Referenced by attachedParentChange(), propagateBackground(), and resetBackground().
Definition at line 686 of file qquickmaterialstyle.cpp.
References foreground, foregroundChange(), and propagateForeground().
Referenced by attachedParentChange(), propagateForeground(), and resetForeground().
Definition at line 552 of file qquickmaterialstyle.cpp.
References primary, primaryChange(), and propagatePrimary().
Referenced by attachedParentChange(), propagatePrimary(), and resetPrimary().
Definition at line 483 of file qquickmaterialstyle.cpp.
References accentChange(), backgroundChange(), foregroundChange(), propagateTheme(), theme, and themeChange().
Referenced by attachedParentChange(), propagateTheme(), and resetTheme().
|
static |
Definition at line 1355 of file qquickmaterialstyle.cpp.
References effectiveTheme(), QColor::fromString(), globalAccent, globalAccentCustom, globalBackground, globalBackgroundCustom, globalForeground, globalForegroundCustom, globalPrimary, globalPrimaryCustom, globalTheme, globalVariant, hasGlobalBackground, hasGlobalForeground, QByteArray::isEmpty(), ok, QStringLiteral, qWarning, resolveSetting(), settings, and QQuickStylePrivate::settings().
Referenced by QtQuickControls2MaterialStylePlugin::initializeTheme().
QColor QQuickMaterialStyle::listHighlightColor | ( | ) | const |
Definition at line 1101 of file qquickmaterialstyle.cpp.
References QColor::fromRgba(), and Light.
int QQuickMaterialStyle::menuItemHeight | ( | ) | const |
Definition at line 1294 of file qquickmaterialstyle.cpp.
References Dense, and globalVariant.
int QQuickMaterialStyle::menuItemVerticalPadding | ( | ) | const |
Definition at line 1300 of file qquickmaterialstyle.cpp.
References Dense, and globalVariant.
QVariant QQuickMaterialStyle::primary | ( | ) | const |
Definition at line 530 of file qquickmaterialstyle.cpp.
References primaryColor.
void QQuickMaterialStyle::primaryChange | ( | ) |
Definition at line 587 of file qquickmaterialstyle.cpp.
References emit, primaryChanged(), toolBarColorChanged(), and toolTextColorChanged().
Referenced by inheritPrimary(), and setPrimary().
|
signal |
QColor QQuickMaterialStyle::primaryColor | ( | ) | const |
Definition at line 855 of file qquickmaterialstyle.cpp.
References BlueGrey, colors, QColor::fromRgba(), and Shade500.
QColor QQuickMaterialStyle::primaryHighlightedTextColor | ( | ) | const |
Definition at line 901 of file qquickmaterialstyle.cpp.
References QColor::fromRgba(), primaryTextColor, and primaryTextColorDark.
|
signal |
QColor QQuickMaterialStyle::primaryTextColor | ( | ) | const |
Definition at line 896 of file qquickmaterialstyle.cpp.
References QColor::fromRgba(), Light, primaryTextColorDark, and primaryTextColorLight.
void QQuickMaterialStyle::propagateAccent | ( | ) |
Definition at line 627 of file qquickmaterialstyle.cpp.
References QQuickAttachedPropertyPropagator::attachedChildren(), child, and inheritAccent().
Referenced by inheritAccent(), and setAccent().
void QQuickMaterialStyle::propagateBackground | ( | ) |
Definition at line 763 of file qquickmaterialstyle.cpp.
References QQuickAttachedPropertyPropagator::attachedChildren(), child, and inheritBackground().
Referenced by inheritBackground(), and setBackground().
void QQuickMaterialStyle::propagateForeground | ( | ) |
Definition at line 698 of file qquickmaterialstyle.cpp.
References QQuickAttachedPropertyPropagator::attachedChildren(), child, and inheritForeground().
Referenced by inheritForeground(), and setForeground().
void QQuickMaterialStyle::propagatePrimary | ( | ) |
Definition at line 563 of file qquickmaterialstyle.cpp.
References QQuickAttachedPropertyPropagator::attachedChildren(), child, and inheritPrimary().
Referenced by inheritPrimary(), and setPrimary().
void QQuickMaterialStyle::propagateTheme | ( | ) |
Definition at line 499 of file qquickmaterialstyle.cpp.
References QQuickAttachedPropertyPropagator::attachedChildren(), child, and inheritTheme().
Referenced by inheritTheme(), and setTheme().
|
static |
Definition at line 453 of file qquickmaterialstyle.cpp.
void QQuickMaterialStyle::resetAccent | ( | ) |
Definition at line 637 of file qquickmaterialstyle.cpp.
References QQuickAttachedPropertyPropagator::attachedParent(), globalAccent, and inheritAccent().
void QQuickMaterialStyle::resetBackground | ( | ) |
Definition at line 773 of file qquickmaterialstyle.cpp.
References QQuickAttachedPropertyPropagator::attachedParent(), globalBackground, and inheritBackground().
void QQuickMaterialStyle::resetContainerStyle | ( | ) |
Definition at line 850 of file qquickmaterialstyle.cpp.
References Filled, and setContainerStyle().
void QQuickMaterialStyle::resetElevation | ( | ) |
Definition at line 807 of file qquickmaterialstyle.cpp.
References setElevation().
void QQuickMaterialStyle::resetForeground | ( | ) |
Definition at line 708 of file qquickmaterialstyle.cpp.
References QQuickAttachedPropertyPropagator::attachedParent(), globalForeground, and inheritForeground().
void QQuickMaterialStyle::resetPrimary | ( | ) |
Definition at line 573 of file qquickmaterialstyle.cpp.
References QQuickAttachedPropertyPropagator::attachedParent(), globalPrimary, and inheritPrimary().
void QQuickMaterialStyle::resetRoundedScale | ( | ) |
Definition at line 831 of file qquickmaterialstyle.cpp.
References NotRounded, and setRoundedScale().
void QQuickMaterialStyle::resetTheme | ( | ) |
Definition at line 509 of file qquickmaterialstyle.cpp.
References QQuickAttachedPropertyPropagator::attachedParent(), globalTheme, inheritTheme(), and theme.
QColor QQuickMaterialStyle::rippleColor | ( | ) | const |
Definition at line 992 of file qquickmaterialstyle.cpp.
References QColor::fromRgba(), Light, rippleColorDark, and rippleColorLight.
QQuickMaterialStyle::RoundedScale QQuickMaterialStyle::roundedScale | ( | ) | const |
Definition at line 817 of file qquickmaterialstyle.cpp.
|
signal |
QColor QQuickMaterialStyle::scrollBarColor | ( | ) | const |
Definition at line 1074 of file qquickmaterialstyle.cpp.
References QColor::fromRgba(), and Light.
QColor QQuickMaterialStyle::scrollBarHoveredColor | ( | ) | const |
Definition at line 1079 of file qquickmaterialstyle.cpp.
References QColor::fromRgba(), and Light.
QColor QQuickMaterialStyle::scrollBarPressedColor | ( | ) | const |
Definition at line 1084 of file qquickmaterialstyle.cpp.
References QColor::fromRgba(), and Light.
QColor QQuickMaterialStyle::secondaryTextColor | ( | ) | const |
Definition at line 908 of file qquickmaterialstyle.cpp.
References QColor::fromRgba(), Light, secondaryTextColorDark, and secondaryTextColorLight.
Definition at line 599 of file qquickmaterialstyle.cpp.
References accent, accentChange(), propagateAccent(), QRgb, and var.
Definition at line 733 of file qquickmaterialstyle.cpp.
References background, backgroundChange(), propagateBackground(), QRgb, and var.
void QQuickMaterialStyle::setContainerStyle | ( | ContainerStyle | containerStyle | ) |
Definition at line 841 of file qquickmaterialstyle.cpp.
References containerStyle, containerStyleChanged(), and emit.
Referenced by resetContainerStyle().
void QQuickMaterialStyle::setElevation | ( | int | elevation | ) |
Definition at line 798 of file qquickmaterialstyle.cpp.
References elevation, and elevationChange().
Referenced by resetElevation().
Definition at line 668 of file qquickmaterialstyle.cpp.
References foreground, foregroundChange(), propagateForeground(), QRgb, and var.
Definition at line 535 of file qquickmaterialstyle.cpp.
References primary, primaryChange(), propagatePrimary(), QRgb, and var.
void QQuickMaterialStyle::setRoundedScale | ( | RoundedScale | roundedScale | ) |
Definition at line 822 of file qquickmaterialstyle.cpp.
References emit, roundedScale, and roundedScaleChanged().
Referenced by resetRoundedScale().
Definition at line 463 of file qquickmaterialstyle.cpp.
References accentChange(), backgroundChange(), Dark, foregroundChange(), QQuickStylePrivate::isDarkSystemTheme(), Light, propagateTheme(), System, theme, and themeChange().
Definition at line 1230 of file qquickmaterialstyle.cpp.
References darkerShade(), Light, lighterShade(), shade(), Shade100, Shade200, Shade300, Shade400, Shade50, Shade500, Shade600, Shade700, Shade800, Shade900, ShadeA100, ShadeA200, ShadeA400, and ShadeA700.
Referenced by buttonColor(), color(), and shade().
QColor QQuickMaterialStyle::sliderDisabledColor | ( | ) | const |
Definition at line 1161 of file qquickmaterialstyle.cpp.
References QColor::fromRgba(), Light, sliderDisabledColorDark, and sliderDisabledColorLight.
QColor QQuickMaterialStyle::spinBoxDisabledIconColor | ( | ) | const |
Definition at line 1156 of file qquickmaterialstyle.cpp.
References QColor::fromRgba(), Light, spinBoxDisabledIconColorDark, and spinBoxDisabledIconColorLight.
QColor QQuickMaterialStyle::switchCheckedHandleColor | ( | ) | const |
Definition at line 1043 of file qquickmaterialstyle.cpp.
References accentColor, QColor::fromRgb(), Light, and Shade800.
QColor QQuickMaterialStyle::switchCheckedTrackColor | ( | ) | const |
Definition at line 1009 of file qquickmaterialstyle.cpp.
References accentColor, Light, and Shade100.
int QQuickMaterialStyle::switchDelegateVerticalPadding | ( | ) | const |
Definition at line 1305 of file qquickmaterialstyle.cpp.
References Dense, and globalVariant.
QColor QQuickMaterialStyle::switchDisabledCheckedHandleColor | ( | ) | const |
Definition at line 1058 of file qquickmaterialstyle.cpp.
References QColor::fromRgb(), and Light.
QColor QQuickMaterialStyle::switchDisabledCheckedIconColor | ( | ) | const |
Definition at line 1063 of file qquickmaterialstyle.cpp.
References QColor::fromRgba(), and Light.
QColor QQuickMaterialStyle::switchDisabledCheckedTrackColor | ( | ) | const |
Definition at line 1020 of file qquickmaterialstyle.cpp.
References QColor::fromRgba(), Light, switchDisabledCheckedTrackColorDark, and switchDisabledCheckedTrackColorLight.
QColor QQuickMaterialStyle::switchDisabledUncheckedHandleColor | ( | ) | const |
Definition at line 1048 of file qquickmaterialstyle.cpp.
References QColor::fromRgba(), Grey, Light, QColor::setAlphaF(), and Shade800.
QColor QQuickMaterialStyle::switchDisabledUncheckedIconColor | ( | ) | const |
Definition at line 1068 of file qquickmaterialstyle.cpp.
References QColor::fromRgba(), Light, switchDisabledUncheckedIconColorDark, and switchDisabledUncheckedIconColorLight.
QColor QQuickMaterialStyle::switchDisabledUncheckedTrackBorderColor | ( | ) | const |
Definition at line 1026 of file qquickmaterialstyle.cpp.
References QColor::fromRgba(), Light, switchDisabledUncheckedTrackBorderColorDark, and switchDisabledUncheckedTrackBorderColorLight.
QColor QQuickMaterialStyle::switchDisabledUncheckedTrackColor | ( | ) | const |
Definition at line 1014 of file qquickmaterialstyle.cpp.
References QColor::fromRgba(), Light, switchDisabledUncheckedTrackColorDark, and switchDisabledUncheckedTrackColorLight.
QColor QQuickMaterialStyle::switchUncheckedHandleColor | ( | ) | const |
QColor QQuickMaterialStyle::switchUncheckedHoveredHandleColor | ( | ) | const |
Definition at line 1037 of file qquickmaterialstyle.cpp.
References Light, and switchUncheckedHandleColor.
QColor QQuickMaterialStyle::switchUncheckedTrackColor | ( | ) | const |
Definition at line 1004 of file qquickmaterialstyle.cpp.
References QColor::fromRgba(), Light, switchUncheckedTrackColorDark, and switchUncheckedTrackColorLight.
QColor QQuickMaterialStyle::textFieldFilledContainerColor | ( | ) | const |
Definition at line 1166 of file qquickmaterialstyle.cpp.
References QColor::fromRgba(), Light, textFieldFilledContainerColorDark, and textFieldFilledContainerColorLight.
int QQuickMaterialStyle::textFieldHeight | ( | ) | const |
Definition at line 1312 of file qquickmaterialstyle.cpp.
References Dense, and globalVariant.
int QQuickMaterialStyle::textFieldHorizontalPadding | ( | ) | const |
Definition at line 1318 of file qquickmaterialstyle.cpp.
References Dense, and globalVariant.
int QQuickMaterialStyle::textFieldVerticalPadding | ( | ) | const |
Definition at line 1322 of file qquickmaterialstyle.cpp.
References Dense, and globalVariant.
QColor QQuickMaterialStyle::textSelectionColor | ( | ) | const |
Definition at line 918 of file qquickmaterialstyle.cpp.
References accentColor.
QQuickMaterialStyle::Theme QQuickMaterialStyle::theme | ( | ) | const |
Definition at line 458 of file qquickmaterialstyle.cpp.
void QQuickMaterialStyle::themeChange | ( | ) |
Definition at line 519 of file qquickmaterialstyle.cpp.
References dialogColorChanged(), emit, primaryHighlightedTextColor, themeChanged(), themeOrAccentChanged(), toolBarColorChanged(), toolTextColorChanged(), and tooltipColorChanged().
Referenced by inheritTheme(), and setTheme().
|
signal |
|
signal |
QColor QQuickMaterialStyle::toolBarColor | ( | ) | const |
Definition at line 1113 of file qquickmaterialstyle.cpp.
References backgroundColor, and primaryColor.
|
signal |
Referenced by backgroundChange(), primaryChange(), and themeChange().
QColor QQuickMaterialStyle::toolTextColor | ( | ) | const |
Definition at line 1120 of file qquickmaterialstyle.cpp.
References Amber, Blue, BlueGrey, Brown, Cyan, DeepOrange, DeepPurple, QColor::fromRgba(), Green, Grey, Indigo, LightBlue, LightGreen, Lime, Orange, Pink, primaryTextColor, primaryTextColorDark, primaryTextColorLight, Purple, Red, Teal, and Yellow.
|
signal |
QColor QQuickMaterialStyle::tooltipColor | ( | ) | const |
Definition at line 1106 of file qquickmaterialstyle.cpp.
References backgroundColor, Grey, and Shade700.
|
signal |
int QQuickMaterialStyle::tooltipHeight | ( | ) | const |
Definition at line 1327 of file qquickmaterialstyle.cpp.
References Dense, and globalVariant.
int QQuickMaterialStyle::touchTarget | ( | ) | const |
Definition at line 1266 of file qquickmaterialstyle.cpp.
References Dense, and globalVariant.
|
static |
Definition at line 1333 of file qquickmaterialstyle.cpp.
References globalVariant.
Referenced by QQuickMaterialTheme::initialize().
|
readwrite |
Definition at line 344 of file qquickmaterialstyle_p.h.
Referenced by buttonColor(), inheritAccent(), and setAccent().
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
Referenced by accent(), accentColor(), buttonColor(), highlightedRippleColor(), switchCheckedHandleColor(), switchCheckedTrackColor(), and textSelectionColor().
|
readwrite |
Definition at line 344 of file qquickmaterialstyle_p.h.
Referenced by buttonColor(), inheritBackground(), and setBackground().
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
Referenced by background(), backgroundColor(), buttonColor(), dialogColor(), toolBarColor(), and tooltipColor().
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
readwrite |
Definition at line 344 of file qquickmaterialstyle_p.h.
Referenced by setContainerStyle().
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
readwrite |
Definition at line 344 of file qquickmaterialstyle_p.h.
Referenced by setElevation().
|
readwrite |
Definition at line 344 of file qquickmaterialstyle_p.h.
Referenced by inheritForeground(), and setForeground().
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
readwrite |
Definition at line 344 of file qquickmaterialstyle_p.h.
Referenced by inheritPrimary(), and setPrimary().
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
Referenced by primary(), and toolBarColor().
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
Referenced by themeChange().
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
Referenced by primaryHighlightedTextColor(), and toolTextColor().
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
readwrite |
Definition at line 344 of file qquickmaterialstyle_p.h.
Referenced by setRoundedScale().
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
Referenced by switchUncheckedHoveredHandleColor().
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
readwrite |
Definition at line 344 of file qquickmaterialstyle_p.h.
Referenced by attachedParentChange(), buttonColor(), inheritTheme(), resetTheme(), and setTheme().
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.
|
read |
Definition at line 344 of file qquickmaterialstyle_p.h.