diff --git a/Modules/Notification/Notification.qml b/Modules/Notification/Notification.qml index afa9282e..244073ae 100644 --- a/Modules/Notification/Notification.qml +++ b/Modules/Notification/Notification.qml @@ -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) diff --git a/Services/NotificationService.qml b/Services/NotificationService.qml index eaf96f80..a45ee385 100644 --- a/Services/NotificationService.qml +++ b/Services/NotificationService.qml @@ -213,8 +213,6 @@ Singleton { } } - - // History management function addToHistory(data) { historyList.insert(0, data)