Trait cosmic::iced_widget::style::menu::StyleSheet

source ·
pub trait StyleSheet {
    type Style: Default + Clone;

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

The style sheet of a menu.

Required Associated Types§

source

type Style: Default + Clone

The supported style of the StyleSheet.

Required Methods§

source

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

Produces the Appearance of a menu.

Implementors§

source§

impl StyleSheet for cosmic::iced_winit::style::Theme

§

type Style = Menu

source§

impl StyleSheet for cosmic::Theme

§

type Style = ()