()
| 18 | |
| 19 | impl Theme { |
| 20 | pub fn new() -> Self { |
| 21 | Self { |
| 22 | is_dark: false, |
| 23 | colors: ThemeColors { |
| 24 | primary: crate::style::Color::rgb(0.0, 0.0, 0.0), |
| 25 | background: crate::style::Color::rgb(1.0, 1.0, 1.0), |
| 26 | text: crate::style::Color::rgb(0.0, 0.0, 0.0), |
| 27 | }, |
| 28 | styles: HashMap::new(), |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | pub fn apply_to(&self, component: &mut dyn Component) { |
| 33 | if let Some(style) = self.styles.get("default") { |
nothing calls this directly
no outgoing calls
no test coverage detected