Skip to main content

Crate gpui_kit_theme

Crate gpui_kit_theme 

Source
Expand description

Maps GPUI-independent tokens into the paint and typography types views use.

Structs§

Borders
Colors
Control
ControlMetrics
Effects
Elevations
Shadows for each elevation step. Flat is intentionally empty rather than a transparent shadow, so a flat surface allocates no shadow work at all.
Motion
Opacity
Radii
Spacing
SpringTokens
Theme
ThemeRegistry
The set of themes an application can switch between at runtime.
TypeStyle
Typography
ZIndices

Enums§

Appearance
ControlSize
The four control heights every interactive component resolves against.
Density
The information-density axis applications expose as a preference.
Elevation
Layer
Painting order for floating surfaces.
MotionDuration
MotionEasing
Radius
SemanticColor
Space
SpringPreset
Surface
TextTone
TypeScale

Traits§

ActiveTheme
Reads the active theme from any context that dereferences to App.

Functions§

activate_theme
Switches the active theme and repaints every window.
set_density
Changes the density axis and repaints every window.