pub trait StyleSheet {
    type Style: Default;

    fn active(&self, style: &Self::Style, is_active: bool) -> Appearance;
    fn hovered(&self, style: &Self::Style, is_active: bool) -> Appearance;
}
Expand description

A set of rules that dictate the style of a toggler.

Required Associated Types§

The supported style of the StyleSheet.

Required Methods§

Returns the active Appearance of the toggler for the provided Style.

Returns the hovered Appearance of the toggler for the provided Style.

Implementors§