Color Theme
interface ColorTheme
Content copied to clipboard
A ColorTheme can be used to give a Component context-dependent styles. The current style depends on the ComponentState of the Component. For each ComponentState there is a corresponding ComponentStyleSet that gets applied whenever the state of the Component changes. These states include:
See also
Functions
toContainerStyle
Link copied to clipboard
Creates a ComponentStyleSet which is intended to be used as a default for containers (eg: Panels, HBoxes, VBoxes.
toInteractableStyle
Link copied to clipboard
toInteractiveStyle
Link copied to clipboard
Creates a ComponentStyleSet which is intended to be used as a default for interactive components (eg: Buttons, ToggleButtons and so on).
toPrimaryContentStyle
Link copied to clipboard
Creates a ComponentStyleSet which is intended to be used as a default for emphasized content (eg: Headers).
toSecondaryContentStyle
Link copied to clipboard
Creates a ComponentStyleSet which is intended to be used as a default for non-emphasized content (eg: Labels, Paragraphs, and so on).
Properties
accentColor
Link copied to clipboard
name
Link copied to clipboard
primaryBackgroundColor
Link copied to clipboard
This color is typically used for the background of Containers.
primaryForegroundColor
Link copied to clipboard
This color is typically used for the text of non-interactive components that have emphasis on them (like Headers).
secondaryBackgroundColor
Link copied to clipboard
secondaryForegroundColor
Link copied to clipboard
This color is typically used for the text of non-interactive components that don't have emphasis on them (like Paragraphs).
Inheritors
DefaultColorTheme
Link copied to clipboard
Sources
(source)
Link copied to clipboard