Add color to calendar events/tasks

This commit is contained in:
Vyn 2024-04-21 10:26:56 +02:00
parent 6ca786a4f6
commit e5275c5ed9

View file

@ -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
} }