From e5275c5ed9903c96acd4014b1d1a0cd6da7c881a Mon Sep 17 00:00:00 2001 From: Vyn Date: Sun, 21 Apr 2024 10:26:56 +0200 Subject: [PATCH] Add color to calendar events/tasks --- src/qml/components/Calendar.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/qml/components/Calendar.qml b/src/qml/components/Calendar.qml index 09dae8b..1afb97d 100644 --- a/src/qml/components/Calendar.qml +++ b/src/qml/components/Calendar.qml @@ -144,9 +144,20 @@ ColumnLayout { y: daysSurface.hourHeight * startTime 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 { anchors.fill: parent anchors.margins: 8 + anchors.leftMargin: 12 AppText { text: name }