C6: progress bar from hints.value, maxHistory default -1 (unlimited)

This commit is contained in:
Damocles 2026-04-13 17:01:04 +02:00
parent 3a9cd59243
commit 20cb306ad6
5 changed files with 50 additions and 8 deletions

View file

@ -300,6 +300,25 @@ M.PopupPanel {
visible: text !== ""
}
// Progress bar (hints.value)
Item {
width: parent.width
height: 3
visible: (notifItem.modelData.hints?.value ?? -1) >= 0
Rectangle {
anchors.fill: parent
color: M.Theme.base02
radius: 1
}
Rectangle {
width: parent.width * Math.min(1, Math.max(0, (notifItem.modelData.hints?.value ?? 0) / 100))
height: parent.height
radius: 1
color: M.Theme.base0D
}
}
// Actions
Row {
spacing: 4