diff --git a/dashboard/src/ui.rs b/dashboard/src/ui.rs index 68400b1..c35152b 100644 --- a/dashboard/src/ui.rs +++ b/dashboard/src/ui.rs @@ -47,12 +47,14 @@ pub fn apply_theme(app: &AppWindow, entities: &Vec) { && let Ok(illuminance) = entity.state.parse::() { let mut color_scheme = app.get_color_scheme(); - if illuminance < 150 { + if illuminance < 100 { color_scheme = ColorScheme::Dark; - } else if illuminance > 300 { + } else if illuminance > 400 { color_scheme = ColorScheme::Light; } + dbg!(illuminance, color_scheme); + app.set_color_scheme(color_scheme); } }