use crate::geometry::Color;
#[derive(Clone)]
pub struct Theme {
pub background: Color,
pub face: Color,
pub highlight: Color,
pub shadow: Color,
pub border: Color,
pub text: Color,
pub disabled_text: Color,
pub highlight_bg: Color,
pub highlight_text: Color,
pub font_size: f32,
}
impl Theme {
pub const fn windows_31() -> Self {
Self {
background: Color::WHITE,
face: Color::LIGHT_GRAY,
highlight: Color::WHITE,
shadow: Color::MID_GRAY,
border: Color::BLACK,
text: Color::BLACK,
disabled_text: Color::MID_GRAY,
highlight_bg: Color::NAVY,
highlight_text: Color::WHITE,
font_size: 13.0,
}
}
}
impl Default for Theme {
fn default() -> Self {
Self::windows_31()
}
}