Add left + right Calendar bars

This commit is contained in:
Vyn 2025-06-25 12:06:33 +02:00
parent e10b466b60
commit d208fc6ca4
Signed by: vyn
GPG key ID: E1B2BE34E7A971E7
2 changed files with 12 additions and 5 deletions

2
external/selenite vendored

@ -1 +1 @@
Subproject commit fe9e7106f1c2d81603fd78f805490ee92ecce062 Subproject commit 9592f1b18d149e1cf76a32df419f6ed3db2af3d6

View file

@ -65,16 +65,23 @@ export component Calendar inherits Rectangle {
} }
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; min-width: 400px;
//background: green; //background: green;
HorizontalLayout { HorizontalLayout {
for day[day-index] in root.days: Rectangle { for day[day-index] in root.days: Rectangle {
if day-index > 0 : Rectangle { Rectangle {
x: 0; x: 0;
y: header-height - 32px; y: header-height - 32px;
width: 1px; width: 1px;
height: parent.height; height: parent.height - self.y;
background: Palette.card-background.brighter(0.5); background: Palette.card-background.brighter(0.3);
} }
VerticalLayout { VerticalLayout {
y: 0; y: 0;
@ -87,7 +94,7 @@ export component Calendar inherits Rectangle {
} }
} }
for hour[hour-index] in 24 : Rectangle { for hour[hour-index] in 24 : Rectangle {
background: Palette.card-background.brighter(0.5); background: Palette.card-background.brighter(0.3);
x: 0px; x: 0px;
width: parent.width; width: parent.width;
y: day-start-y + hour-spacing * hour-index; y: day-start-y + hour-spacing * hour-index;