From d208fc6ca495fefab764b8a036482af498b4df02 Mon Sep 17 00:00:00 2001 From: Vyn Date: Wed, 25 Jun 2025 12:06:33 +0200 Subject: [PATCH] Add left + right Calendar bars --- external/selenite | 2 +- src/components/Calendar.slint | 15 +++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/external/selenite b/external/selenite index fe9e710..9592f1b 160000 --- a/external/selenite +++ b/external/selenite @@ -1 +1 @@ -Subproject commit fe9e7106f1c2d81603fd78f805490ee92ecce062 +Subproject commit 9592f1b18d149e1cf76a32df419f6ed3db2af3d6 diff --git a/src/components/Calendar.slint b/src/components/Calendar.slint index e213cc1..2f75357 100644 --- a/src/components/Calendar.slint +++ b/src/components/Calendar.slint @@ -65,16 +65,23 @@ export component Calendar inherits Rectangle { } Rectangle { + Rectangle { + x: parent.width - 1px; + y: header-height - 32px; + width: 1px; + height: parent.height - self.y; + background: Palette.card-background.brighter(0.3); + } min-width: 400px; //background: green; HorizontalLayout { for day[day-index] in root.days: Rectangle { - if day-index > 0 : Rectangle { + Rectangle { x: 0; y: header-height - 32px; width: 1px; - height: parent.height; - background: Palette.card-background.brighter(0.5); + height: parent.height - self.y; + background: Palette.card-background.brighter(0.3); } VerticalLayout { y: 0; @@ -87,7 +94,7 @@ export component Calendar inherits Rectangle { } } for hour[hour-index] in 24 : Rectangle { - background: Palette.card-background.brighter(0.5); + background: Palette.card-background.brighter(0.3); x: 0px; width: parent.width; y: day-start-y + hour-spacing * hour-index;