Verified Commit bd83add4 authored by Carl Schwan's avatar Carl Schwan 🚴
Browse files

Add process to the icons in the task view

Fix #34
parent 2547d957
Pipeline #89059 passed with stage
in 2 minutes and 1 second
......@@ -113,6 +113,28 @@ TreeListView {
Layout.column: 0
Layout.rowSpan: root.width < Kirigami.Units.gridUnit * 28 || recurIcon.visible || dateLabel.visible ? 1 : 2
indicator: Kirigami.Icon {
isMask: true
color: model.color
height: parent.height * 0.8
width: height
source: {
if (model.todoCompleted || model.percent === 100) {
return 'task-process-4';
}
if (model.percent > 75) {
return 'task-process-3';
}
if (model.percent > 50) {
return 'task-process-2';
}
if (model.percent > 25) {
return 'task-process-1';
}
return 'task-process-0';
}
}
color: model.color
radius: 100
checked: model.todoCompleted
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment