2020-06-11 20:41:11 +02:00
|
|
|
use iced_core::{Background, Color};
|
|
|
|
|
|
|
|
|
|
/// The appearance of a menu.
|
|
|
|
|
#[derive(Debug, Clone, Copy)]
|
2022-06-07 04:51:44 +02:00
|
|
|
pub struct Appearance {
|
2020-06-11 20:41:11 +02:00
|
|
|
pub text_color: Color,
|
|
|
|
|
pub background: Background,
|
2020-11-23 00:31:50 +01:00
|
|
|
pub border_width: f32,
|
2022-08-02 16:03:29 -07:00
|
|
|
pub border_radius: f32,
|
2020-06-11 20:41:11 +02:00
|
|
|
pub border_color: Color,
|
|
|
|
|
pub selected_text_color: Color,
|
|
|
|
|
pub selected_background: Background,
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-07 04:51:44 +02:00
|
|
|
pub trait StyleSheet {
|
|
|
|
|
type Style: Default + Copy;
|
|
|
|
|
|
|
|
|
|
fn appearance(&self, style: Self::Style) -> Appearance;
|
2020-06-11 20:41:11 +02:00
|
|
|
}
|