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§

type Style: Default

The supported style of the StyleSheet.

Required Methods§

fn active(&self, style: &Self::Style, is_active: bool) -> Appearance

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

fn hovered(&self, style: &Self::Style, is_active: bool) -> Appearance

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

Implementors§