1786019765

This commit is contained in:
2026-08-06 14:36:05 +02:00
parent 933b3a4c73
commit 2bcbf4ffe9

View File

@@ -1,18 +1,46 @@
import { Button, VerticalBox } from "std-widgets.slint"; import { Button, VerticalBox, HorizontalBox, CheckBox } from "std-widgets.slint";
export component AppWindow inherits Window { export component AppWindow inherits Window {
default-font-size: 32px; default-font-size: 32px;
in-out property<int> counter: 42; in-out property<int> counter: 42;
callback request-increase-value(); callback request-increase-value();
VerticalBox { HorizontalBox {
Text { VerticalBox {
text: "Counter: \{root.counter}"; Text {
font-size: 24px; text: "Counter: \{root.counter}";
font-size: 24px;
}
Button {
text: "Increase value";
clicked => {
root.request-increase-value();
}
}
} }
Button { VerticalBox {
text: "Increase value"; CheckBox {
clicked => { text: "Armory Light";
root.request-increase-value(); }
CheckBox {
text: "Bedroom Light";
}
CheckBox {
text: "Hallway Light";
}
CheckBox {
text: "Kitchen Light";
}
CheckBox {
text: "Living Room Light";
}
CheckBox {
text: "Shower Light";
}
CheckBox {
text: "Utilities Light";
}
CheckBox {
text: "WC Light";
} }
} }
} }