Notification: add urgency and alter the look when it's a critical notification.

This commit is contained in:
Sébastien Atoch 2025-07-23 14:17:54 -04:00
parent 411ed72436
commit 73ec07491f
2 changed files with 4 additions and 0 deletions

View file

@ -32,6 +32,7 @@ PanelWindow {
appName: notification.appName || "Notification",
summary: notification.summary || "",
body: notification.body || "",
urgency: notification.urgency || 0,
rawNotification: notification,
appeared: false,
dismissed: false
@ -84,6 +85,8 @@ PanelWindow {
width: parent.width
color: Theme.backgroundPrimary
radius: 20
border.color: model.urgency == 2 ? Theme.warning : Theme.outline
border.width: 1
property bool appeared: model.appeared
property bool dismissed: model.dismissed

View file

@ -62,6 +62,7 @@ Scope {
appName: notification.appName || "Notification",
summary: notification.summary || "",
body: notification.body || "",
urgency: notification.urgency,
timestamp: Date.now()
});
}