1use crate::style::Style;
4use crate::widget::Color;
5
6pub trait Theme {
12 fn apply(&self, style: &mut Style);
14}
15
16pub struct LightTheme;
18
19impl Theme for LightTheme {
20 fn apply(&self, style: &mut Style) {
21 style.bg_color = Color(255, 255, 255, 255);
22 style.border_color = Color(0, 0, 0, 255);
23 }
24}
25
26pub struct DarkTheme;
28
29impl Theme for DarkTheme {
30 fn apply(&self, style: &mut Style) {
31 style.bg_color = Color(0, 0, 0, 255);
32 style.border_color = Color(255, 255, 255, 255);
33 }
34}