From e21789f78b2d92482aa35f3468e8aafea44b575f Mon Sep 17 00:00:00 2001 From: Avii Date: Fri, 7 Aug 2026 15:08:07 +0200 Subject: [PATCH] 1786108087 --- ui/main.slint | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/ui/main.slint b/ui/main.slint index c854afa..5d30625 100644 --- a/ui/main.slint +++ b/ui/main.slint @@ -370,6 +370,28 @@ export component AppWindow inherits Window { vertical-alignment: center; } + Rectangle { + x: parent.width - 66px; + y: 19px; + width: 44px; + height: 44px; + border-width: 2px; + border-color: black; + background: close-touch.pressed ? Settings.dark-mode ? #777777 : black : Settings.dark-mode ? black : white; + + close-touch := TouchArea { + clicked => { Settings.dark-mode = !Settings.dark-mode } + } + + Text { + text: Settings.dark-mode ? "D" : "L"; + color: close-touch.pressed ? white : black; + font-size: 29px; + horizontal-alignment: center; + vertical-alignment: center; + } + } + if root.current-page == 0: Rectangle { x: 0; y: 84px;