mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-02 09:23:18 +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
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue