Trait cosmic::theme::style::menu_bar::StyleSheet

source ·
pub trait StyleSheet {
    type Style: Default;

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

The style sheet of a menu bar and its menus.

Required Associated Types§

source

type Style: Default

The supported style of the StyleSheet.

Required Methods§

source

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

Produces the Appearance of a menu bar and its menus.

Implementations on Foreign Types§

source§

impl StyleSheet for fn(_: &Theme) -> Appearance

source§

type Style = Theme

source§

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

Implementors§