Trait cosmic::widget::dropdown::multi::StyleSheet

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

    // Required methods
    fn active(&self, style: &Self::Style) -> Appearance;
    fn hovered(&self, style: &Self::Style) -> Appearance;
}
Expand description

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

Required Associated Types§

source

type Style: Default + Clone

The supported style of the StyleSheet.

Required Methods§

source

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

Produces the active Appearance of a pick list.

source

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

Produces the hovered Appearance of a pick list.

Implementors§

source§

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

source§

impl StyleSheet for cosmic::Theme

§

type Style = ()