mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
feat: progress bar for notifs
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user