mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-03 10:13:42 +00:00
Add color to calendar events/tasks
This commit is contained in:
parent
6ca786a4f6
commit
e5275c5ed9
1 changed files with 11 additions and 0 deletions
|
@ -144,9 +144,20 @@ ColumnLayout {
|
||||||
y: daysSurface.hourHeight * startTime
|
y: daysSurface.hourHeight * startTime
|
||||||
height: (endTime - startTime) * daysSurface.hourHeight
|
height: (endTime - startTime) * daysSurface.hourHeight
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
color: backend.getTagColor(modelData.tags[0])
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.left: parent.left
|
||||||
|
topLeftRadius: parent.radius
|
||||||
|
bottomLeftRadius: parent.radius
|
||||||
|
width: 6
|
||||||
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 8
|
anchors.margins: 8
|
||||||
|
anchors.leftMargin: 12
|
||||||
AppText {
|
AppText {
|
||||||
text: name
|
text: name
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue