iced::widget

Function themer

Source
pub fn themer<'a, Message, OldTheme, NewTheme, Renderer>(
    new_theme: NewTheme,
    content: impl Into<Element<'a, Message, NewTheme, Renderer>>,
) -> Themer<'a, Message, OldTheme, NewTheme, impl Fn(&OldTheme), Renderer>
where Renderer: Renderer, NewTheme: Clone,
Expand description

A widget that applies any Theme to its contents.