diff --git a/dashboard/build.rs b/dashboard/build.rs index b6fb229..b10c433 100644 --- a/dashboard/build.rs +++ b/dashboard/build.rs @@ -2,7 +2,7 @@ fn main() { slint_build::compile_with_config( "ui/main.slint", slint_build::CompilerConfiguration::new() - .with_style("material-light".into()) + .with_style("material".into()) .embed_resources(slint_build::EmbedResourcesKind::EmbedFiles), ) .unwrap(); diff --git a/dashboard/ui/main.slint b/dashboard/ui/main.slint index 5c521fe..062905e 100644 --- a/dashboard/ui/main.slint +++ b/dashboard/ui/main.slint @@ -44,6 +44,12 @@ export struct DateTimeData { component Clock { in property date-time; + TouchArea { + clicked => { + Palette.color-scheme = Palette.color-scheme == ColorScheme.dark ? ColorScheme.light : ColorScheme.dark; + } + } + VerticalLayout { alignment: center; padding-left: 5px; @@ -117,6 +123,7 @@ component LightTile inherits Rectangle { } export component AppWindow inherits Window { + title: "Dashboard"; width: 1024px; height: 600px;