diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-10 22:58:48 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-10 22:58:48 +1000 |
| commit | 5c807fc5494357fa272255564a04c245e9a3713f (patch) | |
| tree | 0d4b88bfc0d3351444238c9d72f0db77cedb26c6 /modules/notifications | |
| parent | notifs: notif actions (diff) | |
| download | caelestia-shell-5c807fc5494357fa272255564a04c245e9a3713f.tar.gz caelestia-shell-5c807fc5494357fa272255564a04c245e9a3713f.tar.bz2 caelestia-shell-5c807fc5494357fa272255564a04c245e9a3713f.zip | |
notifs: colour by urgency
Diffstat (limited to 'modules/notifications')
| -rw-r--r-- | modules/notifications/Notification.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml index 806a182..a6329e3 100644 --- a/modules/notifications/Notification.qml +++ b/modules/notifications/Notification.qml @@ -20,7 +20,7 @@ StyledRect { property bool expanded clip: true - color: Colours.palette.m3surfaceContainer + color: root.modelData.urgency === NotificationUrgency.Critical ? Colours.palette.m3secondaryContainer : Colours.palette.m3surfaceContainer radius: Appearance.rounding.normal implicitWidth: NotifsConfig.sizes.width implicitHeight: inner.height @@ -130,7 +130,7 @@ StyledRect { sourceComponent: StyledRect { radius: Appearance.rounding.full - color: Colours.palette.m3tertiaryContainer + color: root.modelData.urgency === NotificationUrgency.Critical ? Colours.palette.m3error : root.modelData.urgency === NotificationUrgency.Low ? Colours.palette.m3surfaceContainerHighest : Colours.palette.m3tertiaryContainer implicitWidth: root.hasImage ? NotifsConfig.sizes.badge : root.imageSize implicitHeight: root.hasImage ? NotifsConfig.sizes.badge : root.imageSize @@ -151,7 +151,7 @@ StyledRect { sourceComponent: Colouriser { source: icon - colorizationColor: Colours.palette.m3onTertiaryContainer + colorizationColor: root.modelData.urgency === NotificationUrgency.Critical ? Colours.palette.m3onError : root.modelData.urgency === NotificationUrgency.Low ? Colours.palette.m3onSurface : Colours.palette.m3onTertiaryContainer } } } |