From 2bcbf4ffe9256ab2e54eb0f1d345c91beb7d0d19 Mon Sep 17 00:00:00 2001 From: Avii Date: Thu, 6 Aug 2026 14:36:05 +0200 Subject: [PATCH] 1786019765 --- ui/main.slint | 46 +++++++++++++++++++++++++++++++++++++--------- 1 file changed, 37 insertions(+), 9 deletions(-) diff --git a/ui/main.slint b/ui/main.slint index 171f479..f04712d 100644 --- a/ui/main.slint +++ b/ui/main.slint @@ -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 { default-font-size: 32px; in-out property counter: 42; callback request-increase-value(); - VerticalBox { - Text { - text: "Counter: \{root.counter}"; - font-size: 24px; + HorizontalBox { + VerticalBox { + Text { + text: "Counter: \{root.counter}"; + font-size: 24px; + } + Button { + text: "Increase value"; + clicked => { + root.request-increase-value(); + } + } } - Button { - text: "Increase value"; - clicked => { - root.request-increase-value(); + VerticalBox { + CheckBox { + text: "Armory Light"; + } + 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"; } } }