with_style

Function with_style 

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

Decorates a Program with the given style function.