with_theme

Function with_theme 

Source
pub fn with_theme<P: Program>(
    program: P,
    f: impl Fn(&P::State, Id) -> Option<P::Theme>,
) -> impl Program<State = P::State, Message = P::Message, Theme = P::Theme>
Expand description

Decorates a Program with the given theme function.