28 Q_PROPERTY(
Theme theme READ theme WRITE setTheme RESET resetTheme NOTIFY themeChanged FINAL)
29 Q_PROPERTY(
QVariant primary READ primary WRITE setPrimary RESET resetPrimary NOTIFY primaryChanged FINAL)
30 Q_PROPERTY(
QVariant accent READ accent WRITE setAccent RESET resetAccent NOTIFY accentChanged FINAL)
32 Q_PROPERTY(
QVariant background READ background WRITE setBackground RESET resetBackground NOTIFY backgroundChanged FINAL)
33 Q_PROPERTY(
int elevation READ elevation WRITE setElevation RESET resetElevation NOTIFY elevationChanged FINAL)
35 NOTIFY roundedScaleChanged FINAL)
37 NOTIFY containerStyleChanged FINAL)
43 Q_PROPERTY(
QColor primaryHighlightedTextColor READ primaryHighlightedTextColor NOTIFY primaryHighlightedTextColorChanged FINAL)
44 Q_PROPERTY(
QColor secondaryTextColor READ secondaryTextColor NOTIFY themeChanged FINAL)
46 Q_PROPERTY(
QColor textSelectionColor READ textSelectionColor NOTIFY themeOrAccentChanged FINAL)
53 Q_PROPERTY(
QColor highlightedRippleColor READ highlightedRippleColor NOTIFY themeOrAccentChanged FINAL)
54 Q_PROPERTY(
QColor switchUncheckedTrackColor READ switchUncheckedTrackColor NOTIFY themeChanged FINAL)
55 Q_PROPERTY(
QColor switchCheckedTrackColor READ switchCheckedTrackColor NOTIFY themeOrAccentChanged FINAL)
56 Q_PROPERTY(
QColor switchUncheckedHandleColor READ switchUncheckedHandleColor NOTIFY themeChanged FINAL)
57 Q_PROPERTY(
QColor switchUncheckedHoveredHandleColor READ switchUncheckedHoveredHandleColor NOTIFY themeChanged FINAL)
58 Q_PROPERTY(
QColor switchDisabledUncheckedTrackColor READ switchDisabledUncheckedTrackColor NOTIFY themeChanged FINAL)
59 Q_PROPERTY(
QColor switchDisabledCheckedTrackColor READ switchDisabledCheckedTrackColor NOTIFY themeChanged FINAL)
60 Q_PROPERTY(
QColor switchDisabledUncheckedTrackBorderColor READ switchDisabledUncheckedTrackBorderColor NOTIFY themeChanged FINAL)
61 Q_PROPERTY(
QColor switchCheckedHandleColor READ switchCheckedHandleColor NOTIFY themeOrAccentChanged FINAL)
62 Q_PROPERTY(
QColor switchDisabledUncheckedHandleColor READ switchDisabledUncheckedHandleColor NOTIFY themeChanged FINAL)
63 Q_PROPERTY(
QColor switchDisabledCheckedHandleColor READ switchDisabledCheckedHandleColor NOTIFY themeChanged FINAL)
64 Q_PROPERTY(
QColor switchDisabledCheckedIconColor READ switchDisabledCheckedIconColor NOTIFY themeChanged FINAL)
65 Q_PROPERTY(
QColor switchDisabledUncheckedIconColor READ switchDisabledUncheckedIconColor NOTIFY themeChanged FINAL)
67 Q_PROPERTY(
QColor scrollBarHoveredColor READ scrollBarHoveredColor NOTIFY themeChanged FINAL)
68 Q_PROPERTY(
QColor scrollBarPressedColor READ scrollBarPressedColor NOTIFY themeChanged FINAL)
70 Q_PROPERTY(
QColor backgroundDimColor READ backgroundDimColor NOTIFY themeChanged FINAL)
71 Q_PROPERTY(
QColor listHighlightColor READ listHighlightColor NOTIFY themeChanged FINAL)
75 Q_PROPERTY(
QColor spinBoxDisabledIconColor READ spinBoxDisabledIconColor NOTIFY themeChanged FINAL)
76 Q_PROPERTY(
QColor sliderDisabledColor READ sliderDisabledColor NOTIFY themeChanged FINAL REVISION(2, 15))
77 Q_PROPERTY(
QColor textFieldFilledContainerColor READ textFieldFilledContainerColor NOTIFY themeChanged FINAL)
79 Q_PROPERTY(
int touchTarget READ touchTarget CONSTANT FINAL)
80 Q_PROPERTY(
int buttonVerticalPadding READ buttonVerticalPadding CONSTANT FINAL)
81 Q_PROPERTY(
int buttonHeight READ buttonHeight CONSTANT FINAL)
82 Q_PROPERTY(
int delegateHeight READ delegateHeight CONSTANT FINAL)
83 Q_PROPERTY(
int dialogButtonBoxHeight READ dialogButtonBoxHeight CONSTANT FINAL)
84 Q_PROPERTY(
int dialogTitleFontPixelSize READ dialogTitleFontPixelSize CONSTANT FINAL)
86 Q_PROPERTY(
int frameVerticalPadding READ frameVerticalPadding CONSTANT FINAL)
87 Q_PROPERTY(
int menuItemHeight READ menuItemHeight CONSTANT FINAL)
88 Q_PROPERTY(
int menuItemVerticalPadding READ menuItemVerticalPadding CONSTANT FINAL)
89 Q_PROPERTY(
int switchIndicatorWidth READ switchIndicatorWidth CONSTANT FINAL)
90 Q_PROPERTY(
int switchIndicatorHeight READ switchIndicatorHeight CONSTANT FINAL)
91 Q_PROPERTY(
int switchNormalHandleHeight READ switchNormalHandleHeight CONSTANT FINAL)
92 Q_PROPERTY(
int switchCheckedHandleHeight READ switchCheckedHandleHeight CONSTANT FINAL)
93 Q_PROPERTY(
int switchLargestHandleHeight READ switchLargestHandleHeight CONSTANT FINAL)
94 Q_PROPERTY(
int switchDelegateVerticalPadding READ switchDelegateVerticalPadding CONSTANT FINAL)
95 Q_PROPERTY(
int textFieldHeight READ textFieldHeight CONSTANT FINAL)
96 Q_PROPERTY(
int textFieldHorizontalPadding READ textFieldHorizontalPadding CONSTANT FINAL)
97 Q_PROPERTY(
int textFieldVerticalPadding READ textFieldVerticalPadding CONSTANT FINAL)
98 Q_PROPERTY(
int tooltipHeight READ tooltipHeight CONSTANT FINAL)
162 ExtraLargeScale = 28,
183 void setTheme(Theme theme);
184 void inheritTheme(Theme theme);
185 void propagateTheme();
190 void setPrimary(
const QVariant &accent);
191 void inheritPrimary(
uint primary,
bool custom);
192 void propagatePrimary();
194 void primaryChange();
197 void setAccent(
const QVariant &accent);
198 void inheritAccent(
uint accent,
bool custom);
199 void propagateAccent();
205 void inheritForeground(
uint foreground,
bool custom,
bool has);
206 void propagateForeground();
207 void resetForeground();
208 void foregroundChange();
211 void setBackground(
const QVariant &background);
212 void inheritBackground(
uint background,
bool custom,
bool has);
213 void propagateBackground();
214 void resetBackground();
215 void backgroundChange();
217 int elevation()
const;
218 void setElevation(
int elevation);
219 void resetElevation();
220 void elevationChange();
222 RoundedScale roundedScale()
const;
223 void setRoundedScale(RoundedScale roundedScale);
224 void resetRoundedScale();
226 ContainerStyle containerStyle()
const;
227 void setContainerStyle(ContainerStyle containerStyle);
228 void resetContainerStyle();
230 QColor primaryColor()
const;
231 QColor accentColor()
const;
232 QColor backgroundColor()
const;
233 QColor primaryTextColor()
const;
234 QColor primaryHighlightedTextColor()
const;
235 QColor secondaryTextColor()
const;
236 QColor hintTextColor()
const;
237 QColor textSelectionColor()
const;
238 QColor dropShadowColor()
const;
239 QColor dividerColor()
const;
241 QColor iconDisabledColor()
const;
243 bool enabled,
bool flat,
bool highlighted,
bool checked)
const;
244 QColor frameColor()
const;
245 QColor rippleColor()
const;
246 QColor highlightedRippleColor()
const;
247 QColor switchUncheckedTrackColor()
const;
248 QColor switchCheckedTrackColor()
const;
249 QColor switchDisabledUncheckedTrackColor()
const;
250 QColor switchDisabledCheckedTrackColor()
const;
251 QColor switchDisabledUncheckedTrackBorderColor()
const;
252 QColor switchUncheckedHandleColor()
const;
253 QColor switchUncheckedHoveredHandleColor()
const;
254 QColor switchCheckedHandleColor()
const;
255 QColor switchDisabledUncheckedHandleColor()
const;
256 QColor switchDisabledCheckedHandleColor()
const;
257 QColor switchDisabledCheckedIconColor()
const;
258 QColor switchDisabledUncheckedIconColor()
const;
259 QColor scrollBarColor()
const;
260 QColor scrollBarHoveredColor()
const;
261 QColor scrollBarPressedColor()
const;
262 QColor dialogColor()
const;
263 QColor backgroundDimColor()
const;
264 QColor listHighlightColor()
const;
265 QColor tooltipColor()
const;
266 QColor toolBarColor()
const;
267 QColor toolTextColor()
const;
268 QColor spinBoxDisabledIconColor()
const;
269 QColor sliderDisabledColor()
const;
270 QColor textFieldFilledContainerColor()
const;
275 int touchTarget()
const;
276 int buttonVerticalPadding()
const;
277 Q_INVOKABLE int buttonLeftPadding(
bool flat,
bool hasIcon)
const;
278 Q_INVOKABLE int buttonRightPadding(
bool flat,
bool hasIcon,
bool hasText)
const;
279 int buttonHeight()
const;
280 int delegateHeight()
const;
281 int dialogButtonBoxHeight()
const;
282 int dialogTitleFontPixelSize()
const;
283 RoundedScale dialogRoundedScale()
const;
284 int frameVerticalPadding()
const;
285 int menuItemHeight()
const;
286 int menuItemVerticalPadding()
const;
287 int switchIndicatorWidth()
const;
288 int switchIndicatorHeight()
const;
289 int switchNormalHandleHeight()
const;
290 int switchCheckedHandleHeight()
const;
291 int switchLargestHandleHeight()
const;
292 int switchDelegateVerticalPadding()
const;
293 int textFieldHeight()
const;
294 int textFieldHorizontalPadding()
const;
295 int textFieldVerticalPadding()
const;
296 int tooltipHeight()
const;
298 static void initGlobals();
330 Shade themeShade()
const;
334 bool m_explicitTheme =
false;
335 bool m_explicitPrimary =
false;
336 bool m_explicitAccent =
false;
337 bool m_explicitForeground =
false;
338 bool m_explicitBackground =
false;
342 bool m_customPrimary =
false;
343 bool m_customAccent =
false;
344 bool m_customForeground =
false;
345 bool m_customBackground =
false;
350 bool m_hasForeground =
false;
351 bool m_hasBackground =
false;
353 Theme m_theme = Light;
356 uint m_foreground = 0;
357 uint m_background = 0;
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)