summaryrefslogtreecommitdiffstats
path: root/style/src/menu.rs
blob: 6ef3e2a23df2076c76fae6ca9db3d1d7f2db016c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use iced_core::{Background, Color};

/// The appearance of a menu.
#[derive(Debug, Clone, Copy)]
pub struct Appearance {
    pub text_color: Color,
    pub background: Background,
    pub border_width: f32,
    pub border_radius: f32,
    pub border_color: Color,
    pub selected_text_color: Color,
    pub selected_background: Background,
}

pub trait StyleSheet {
    type Style: Default + Copy;

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