Skip to main content

with_theme

Function with_theme 

Source
pub fn with_theme(widget: Widget, theme: Theme) -> Widget
Expand description

Apply a Theme to a scaffold (brand color, corner, density, font). No-op on any other widget. Lets an app brand its UI without new scaffold builder overloads: with_theme(nav_scaffold(...), Theme { seed, ..Default::default() }).