From 65920b72b344798b2e849242a61d30b483497d6c Mon Sep 17 00:00:00 2001 From: Avii Date: Mon, 10 Aug 2026 14:50:49 +0200 Subject: [PATCH] 1786366249 --- dashboard/src/ui.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } }