Skip to main content

Module theme

Module theme 

Source
Expand description

Core theme types: ThemeData and the RosaceTheme trait.

Structs§

AnimationConfig
Global animation policy (theme-level). Toggle-style widgets (Switch, Checkbox, Radio) and other transitions read this: when enabled is false everything snaps; otherwise they ease over duration_ms. Set it once on the theme and every widget follows.
AppBarStyle
Per-widget platform styling for AppBar (D105 Phase 23 Step 3 — the proof-of-concept widget for the whole per-widget-Style-struct model). Per-instance builder calls on the widget itself (.height(..), .traffic_lights()) override these theme defaults; a widget that doesn’t set them falls back to whatever the active theme says.
ThemeData
All design tokens bundled together as a single snapshot.

Enums§

TitleAlign
Where an [AppBar](rosace_widgets equivalent — see rosace-widgets) positions its title relative to the bar, per D105.

Traits§

RosaceTheme
Implement this trait to supply a custom theme to the framework.