UI module

Theme

structextensionexperimentalsince 0.31.0Source

The look of the library's widgets. Change fields on ui.theme (or set_theme) to restyle everything.

Example
t := default_theme();
t.accent = hex(0xFF5500);

Fields

background: Color
the window
surface: Color
panels and bars
surface_raised: Color
controls: buttons, fields
surface_hover: Color
surface_pressed: Color
text: Color
text_muted: Color
accent: Color
accent_text: Color
text on the accent colour
outline: Color
selection: Color
caret: Color
error: Color
warning: Color
font_size: float
mono_size: float
radius: float
padding: float
inside a control
gap: float
between controls

See also