mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-01 17:03:19 +00:00
Add left + right Calendar bars
This commit is contained in:
parent
e10b466b60
commit
d208fc6ca4
2 changed files with 12 additions and 5 deletions
2
external/selenite
vendored
2
external/selenite
vendored
|
@ -1 +1 @@
|
|||
Subproject commit fe9e7106f1c2d81603fd78f805490ee92ecce062
|
||||
Subproject commit 9592f1b18d149e1cf76a32df419f6ed3db2af3d6
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue