summaryrefslogtreecommitdiff
path: root/modules/notifications/Notification.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/notifications/Notification.qml')
-rw-r--r--modules/notifications/Notification.qml6
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
}
}
}