pub struct UiStyle {Show 19 fields
pub background: Color,
pub surface: Color,
pub surface_hover: Color,
pub surface_active: Color,
pub accent: Color,
pub accent_hover: Color,
pub text: Color,
pub text_secondary: Color,
pub text_disabled: Color,
pub border: Color,
pub border_strong: Color,
pub plot_background: Color,
pub plot_surface: Color,
pub plot_grid: Color,
pub plot_border: Color,
pub data_palette: [Color; 6],
pub corner_radius: f32,
pub padding: f32,
pub font_size: f32,
}Expand description
Theme colors and metrics used by all widgets.
Fields§
§background: ColorPanel / window background.
surface: ColorWidget surface (button, slider track).
surface_hover: ColorHovered and held surfaces.
surface_active: Color§accent: ColorActive/hovered widget accent.
accent_hover: ColorHovered/held foreground accent.
text: ColorPrimary text color.
text_secondary: ColorSecondary/muted text.
text_disabled: ColorDisabled control text.
border: ColorWidget border.
border_strong: ColorStrong visualization border.
plot_background: ColorFigure/plot canvas background.
plot_surface: ColorAxes interior surface.
plot_grid: ColorPlot grid line color.
plot_border: ColorAxes frame border.
data_palette: [Color; 6]Data series palette; alpha-zero artist styles consume it in order.
corner_radius: f32Widget corner radius in pixels.
padding: f32Inner content padding in pixels.
font_size: f32Base font size in pixels.
Implementations§
Source§impl UiStyle
impl UiStyle
Sourcepub fn realm_light() -> Self
pub fn realm_light() -> Self
Realm light theme — the realm_light derived preset, peer resolution
of the same generated token schema.
Sourcepub fn viewer_dark() -> Self
pub fn viewer_dark() -> Self
Donor media viewer palette (oa::UiStyle::viewerDark) — the
viewer_dark derived preset over the realm_dark token set.