2022-06-29 10:51:01 +02:00
|
|
|
use iced_core::Color;
|
|
|
|
|
|
|
|
|
|
pub trait StyleSheet {
|
|
|
|
|
type Style: Default + Copy;
|
|
|
|
|
|
|
|
|
|
fn appearance(&self, style: Self::Style) -> Appearance;
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-09 18:03:59 +02:00
|
|
|
#[derive(Debug, Clone, Copy, Default)]
|
2022-06-29 10:51:01 +02:00
|
|
|
pub struct Appearance {
|
|
|
|
|
pub color: Option<Color>,
|
|
|
|
|
}
|