AccentColor QML Type
A configurable accent color with dark and light variants. More...
| Import Statement: | import FluentUI.Controls 1.0 |
Properties
Methods
- color defaultBrushFor(bool isDark)
- color secondaryBrushFor(bool isDark)
- color tertiaryBrushFor(bool isDark)
Detailed Description
AccentColor provides a color palette composed of four tint levels (normal, dark, darker, darkest) and convenience methods to obtain standard brush colors that adapt to the current theme. It is used throughout the Fluent Design system to represent a single accent hue in its various tonal expressions.
Property Documentation
dark : color
A darker variant of the accent color.
darker : color
An even darker variant of the accent color.
darkest : color
The darkest variant of the accent color.
normal : color
The base accent color value.
Method Documentation
color defaultBrushFor(bool isDark)
Returns the default brush color for the accent color. When isDark is true, a variant suitable for dark themes is returned; otherwise a light theme variant is returned.
color secondaryBrushFor(bool isDark)
Returns the secondary brush color for the accent color, adapting to the current theme through the isDark parameter.
color tertiaryBrushFor(bool isDark)
Returns the tertiary brush color for the accent color, adapting to the current theme through the isDark parameter.