1786272104

This commit is contained in:
2026-08-09 12:41:44 +02:00
parent 72aee588f2
commit 15bfbaf769
2 changed files with 8 additions and 1 deletions

View File

@@ -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();

View File

@@ -44,6 +44,12 @@ export struct DateTimeData {
component Clock {
in property <DateTimeData> 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;