use super::style::{ClockStyle, DefaultClockStyle};
use super::theme::{ClockTheme, DefaultClockTheme};
pub struct ClockSettings {
pub theme: Box<dyn ClockTheme>,
pub style: Box<dyn ClockStyle>,
}
impl Default for ClockSettings {
fn default() -> Self {
Self {
theme: Box::new(DefaultClockTheme),
style: Box::new(DefaultClockStyle),
}
}
}
impl ClockSettings {
pub fn with_theme(mut self, theme: Box<dyn ClockTheme>) -> Self {
self.theme = theme;
self
}
pub fn with_style(mut self, style: Box<dyn ClockStyle>) -> Self {
self.style = style;
self
}
}