4#ifndef QQUICKMATERIALSTYLE_P_H
5#define QQUICKMATERIALSTYLE_P_H
18#include <QtGui/qcolor.h>
19#include <QtQml/qqml.h>
20#include <QtQuickControls2/qquickattachedpropertypropagator.h>
234 bool enabled,
bool flat,
bool highlighted,
bool checked)
const;
311 Shade themeShade()
const;
315 bool m_explicitTheme =
false;
316 bool m_explicitPrimary =
false;
317 bool m_explicitAccent =
false;
318 bool m_explicitForeground =
false;
319 bool m_explicitBackground =
false;
323 bool m_customPrimary =
false;
324 bool m_customAccent =
false;
325 bool m_customForeground =
false;
326 bool m_customBackground =
false;
331 bool m_hasForeground =
false;
332 bool m_hasBackground =
false;
337 uint m_foreground = 0;
338 uint m_background = 0;
The QColor class provides colors based on RGB, HSV or CMYK values.
QObject * parent() const
Returns a pointer to the parent object.
The QQuickAttachedPropertyPropagator class provides a way to propagate attached properties.
QColor scrollBarHoveredColor
void resetContainerStyle()
void propagateForeground()
QColor scrollBarPressedColor
int menuItemVerticalPadding
void inheritAccent(uint accent, bool custom)
void themeOrAccentChanged()
QColor switchDisabledCheckedIconColor
ContainerStyle containerStyle
void setContainerStyle(ContainerStyle containerStyle)
QColor switchDisabledCheckedHandleColor
QColor switchUncheckedHoveredHandleColor
RoundedScale roundedScale
QColor textSelectionColor
void primaryHighlightedTextColorChanged()
QColor switchUncheckedTrackColor
void inheritForeground(uint foreground, bool custom, bool has)
Q_INVOKABLE QColor buttonColor(Theme theme, const QVariant &background, const QVariant &accent, bool enabled, bool flat, bool highlighted, bool checked) const
void inheritBackground(uint background, bool custom, bool has)
QColor switchDisabledUncheckedIconColor
QColor secondaryTextColor
QColor highlightedRippleColor
QColor spinBoxDisabledIconColor
QColor textFieldFilledContainerColor
int dialogButtonBoxHeight
int textFieldHorizontalPadding
static void initGlobals()
QColor listHighlightColor
void setElevation(int elevation)
QColor switchCheckedHandleColor
void setBackground(const QVariant &background)
void tooltipColorChanged()
void propagateBackground()
void inheritTheme(Theme theme)
Q_INVOKABLE QColor shade(const QColor &color, Shade shade) const
QColor primaryHighlightedTextColor
QColor backgroundDimColor
QColor switchDisabledCheckedTrackColor
QColor switchDisabledUncheckedTrackBorderColor
int switchDelegateVerticalPadding
void attachedParentChange(QQuickAttachedPropertyPropagator *newParent, QQuickAttachedPropertyPropagator *oldParent) override
This function is called whenever the attached parent of this QQuickAttachedPropertyPropagator changes...
void inheritPrimary(uint primary, bool custom)
QColor switchCheckedTrackColor
void containerStyleChanged()
QColor switchDisabledUncheckedTrackColor
QColor sliderDisabledColor
void setTheme(Theme theme)
void setAccent(const QVariant &accent)
void setPrimary(const QVariant &accent)
int textFieldVerticalPadding
void toolBarColorChanged()
static QQuickMaterialStyle * qmlAttachedProperties(QObject *object)
void setRoundedScale(RoundedScale roundedScale)
void roundedScaleChanged()
QColor switchUncheckedHandleColor
QColor switchDisabledUncheckedHandleColor
void dialogColorChanged()
void toolTextColorChanged()
Combined button and popup list for selecting options.
GLenum GLenum GLsizei const GLuint GLboolean enabled
#define QML_UNCREATABLE(REASON)
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define QML_ATTACHED(ATTACHED_TYPE)
decorationRoleName toolTipRoleName whatsThisRoleName textAlignmentRoleName setForeground
QT_BEGIN_NAMESPACE typedef unsigned int QRgb