ColorTheme

interface ColorTheme

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

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
toContainerStyle
Link copied to clipboard
common
open fun toContainerStyle(): ComponentStyleSet
Creates a ComponentStyleSet which is intended to be used as a default for containers (eg: Panels, HBoxes, VBoxes.
toInteractableStyle
Link copied to clipboard
common
open fun toInteractableStyle(): ComponentStyleSet
toInteractiveStyle
Link copied to clipboard
common
open fun toInteractiveStyle(): ComponentStyleSet
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
common
open fun toPrimaryContentStyle(): ComponentStyleSet
Creates a ComponentStyleSet which is intended to be used as a default for emphasized content (eg: Headers).
toSecondaryContentStyle
Link copied to clipboard
common
open fun toSecondaryContentStyle(): ComponentStyleSet
Creates a ComponentStyleSet which is intended to be used as a default for non-emphasized content (eg: Labels, Paragraphs, and so on).
toString
Link copied to clipboard
common
open fun toString(): String

Properties

accentColor
Link copied to clipboard
common
abstract val accentColor: TileColor
This color is typically used for the text and decorations of interactive components.
name
Link copied to clipboard
common
abstract val name: String
A unique name for this ColorTheme.
primaryBackgroundColor
Link copied to clipboard
common
abstract val primaryBackgroundColor: TileColor
This color is typically used for the background of Containers.
primaryForegroundColor
Link copied to clipboard
common
abstract val primaryForegroundColor: TileColor
This color is typically used for the text of non-interactive components that have emphasis on them (like Headers).
secondaryBackgroundColor
Link copied to clipboard
common
abstract val secondaryBackgroundColor: TileColor
This color is typically used for the root container.
secondaryForegroundColor
Link copied to clipboard
common
abstract val secondaryForegroundColor: TileColor
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