feat: progress bar for notifs

This commit is contained in:
FUFSoB
2025-09-23 22:57:19 +05:00
parent 505cf48b6c
commit 5d58083ee5
2 changed files with 4 additions and 4 deletions
+4 -2
View File
@@ -165,10 +165,12 @@ Variants {
anchors.right: parent.right
height: 2 * scaling
color: "transparent"
clip: true
property real availableWidth: parent.width - (2 * parent.radius)
Rectangle {
width: parent.width * (model.progress || 0)
x: parent.parent.radius + (parent.availableWidth * (1 - model.progress)) / 2
width: parent.availableWidth * model.progress
height: parent.height
color: {
if (model.urgency === NotificationUrgency.Critical || model.urgency === 2)
-2
View File
@@ -213,8 +213,6 @@ Singleton {
}
}
// History management
function addToHistory(data) {
historyList.insert(0, data)