2022-05-26 19:02:15 +02:00
|
|
|
use iced_core::Color;
|
|
|
|
|
|
|
|
|
|
pub trait StyleSheet {
|
2022-07-08 20:07:33 +02:00
|
|
|
type Style: Default + Copy;
|
2022-05-26 19:02:15 +02:00
|
|
|
|
2022-07-08 20:07:33 +02:00
|
|
|
fn appearance(&self, style: Self::Style) -> Appearance;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Clone, Copy, PartialEq)]
|
|
|
|
|
pub struct Appearance {
|
|
|
|
|
pub background_color: Color,
|
|
|
|
|
pub text_color: Color,
|
2022-05-26 19:02:15 +02:00
|
|
|
}
|