Expand description
Structs§
- Accent
Colors - A collection of colors that are used to color indent aware lines in the editor.
- Chevron
Icons - The icons used for chevrons.
- Chevron
Icons Content - Color
Scale - A scale of colors for a given
ColorScaleSet. - Color
Scale Set - Provides groups of
ColorScales for light and dark themes, as well as transparent versions of each scale. - Color
Scale Step - A collection of colors that are used to style the UI.
- Color
Scales - Diagnostic
Colors - Directory
Icons - The icons used for directories.
- Directory
Icons Content - Font
Family Cache - A cache for the list of font families.
- Global
Theme - The active theme.
- Icon
Definition - An icon definition.
- Icon
Definition Content - Icon
Theme - An icon theme.
- Icon
Theme Content - Icon
Theme Family - A family of icon themes.
- Icon
Theme Family Content - Icon
Theme NotFound Error - An error indicating that the icon theme with the given name was not found.
- Player
Color - Player
Colors - A collection of colors that are used to color players in the editor.
- Status
Colors - Status
Colors Refinement - A refinable version of [
#ident], see that documentation for details. - Syntax
Theme - System
Appearance - The appearance of the system.
- System
Colors - Theme
- A theme is the primary mechanism for defining the appearance of the UI.
- Theme
Color Field Iter - An iterator over the variants of ThemeColorField
- Theme
Colors - Theme
Colors Refinement - A refinable version of [
#ident], see that documentation for details. - Theme
Family - A theme family is a grouping of themes under a single name.
- Theme
Meta - The metadata for a theme.
- Theme
NotFound Error - An error indicating that the theme with the given name was not found.
- Theme
Registry - The registry for themes.
- Theme
Styles - Theme
Styles Refinement - A refinable version of [
#ident], see that documentation for details.
Enums§
- Appearance
- The appearance of the theme.
- Appearance
Content - The appearance of a theme in serialized content.
- Load
Themes - Which themes should be loaded. This is used primarily for testing.
- Theme
Color Field - UiDensity
- Specifies the density of the UI. Note: This setting is still experimental.
Constants§
- CLIENT_
SIDE_ DECORATION_ ROUNDING - Defines window border radius for platforms that use client side decorations.
- CLIENT_
SIDE_ DECORATION_ SHADOW - Defines window shadow size for platforms that use client side decorations.
- DEFAULT_
DARK_ THEME - The name of the default dark theme.
- DEFAULT_
ICON_ THEME_ NAME - The name of the default icon theme.
Traits§
- Active
Theme - Implementing this trait allows accessing the active theme.
- Theme
Settings Provider - Trait for providing theme-related settings (fonts, font sizes, UI density) without coupling to the concrete settings infrastructure.
Functions§
- all_
theme_ colors - apply_
status_ color_ defaults - Applies default status color backgrounds from their foreground counterparts.
- apply_
theme_ color_ defaults - Applies default theme color values derived from player colors.
- default_
color_ scales - Color scales used to build the default themes.
- default_
icon_ theme - Returns the default icon theme.
- deserialize_
icon_ theme - Deserializes an icon theme from the given bytes.
- init
- Initialize the theme system with default themes.
- set_
appearance - Switches the active appearance (light/dark), swapping in the matching
built-in theme so
cx.theme().colors()reflects the new mode. Components that read neutrals via the theme re-style automatically. - set_
theme_ settings_ provider - Registers the global
ThemeSettingsProviderimplementation. - theme_
settings - Returns the global
ThemeSettingsProvider. - try_
parse_ color - Parses a color string into an
Hslavalue.