Trait StyleSheet

Source
pub trait StyleSheet {
    type Style: Default;

    // Required method
    fn appearance(
        &self,
        style: &Self::Style,
        is_determinate: bool,
        is_circular: bool,
    ) -> Appearance;
}
Expand description

A set of rules that dictate the style of an indicator.

Required Associated Types§

Source

type Style: Default

The supported style of the StyleSheet.

Required Methods§

Source

fn appearance( &self, style: &Self::Style, is_determinate: bool, is_circular: bool, ) -> Appearance

Produces the active Appearance of a indicator.

Implementors§

Source§

impl StyleSheet for cosmic::iced::Theme

Source§

impl StyleSheet for cosmic::Theme