Theme

Trait Theme 

Source
pub trait Theme {
    // Required method
    fn apply(&self, style: &mut Style);
}
Expand description

Global theme that can modify widget styles.

Themes provide a simple hook to set initial colors and other stylistic properties for widgets. Applications can implement this trait to provide bespoke looks across the UI.

Required Methods§

Source

fn apply(&self, style: &mut Style)

Apply the theme to the provided Style.

Implementors§