From 04ce9ccbb4a1b4ee8ee1850f90af886412852b9f Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 14 Aug 2025 16:25:46 +1000 Subject: internal: better colourisation --- modules/notifications/Notification.qml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'modules/notifications') diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml index 73bfce2..d1426fa 100644 --- a/modules/notifications/Notification.qml +++ b/modules/notifications/Notification.qml @@ -162,15 +162,11 @@ StyledRect { width: Math.round(parent.width * 0.6) height: Math.round(parent.width * 0.6) - sourceComponent: IconImage { + sourceComponent: ColouredIcon { anchors.fill: parent source: Quickshell.iconPath(root.modelData.appIcon) - asynchronous: true - + colour: root.modelData.urgency === NotificationUrgency.Critical ? Colours.palette.m3onError : root.modelData.urgency === NotificationUrgency.Low ? Colours.palette.m3onSurface : Colours.palette.m3onTertiaryContainer layer.enabled: root.modelData.appIcon.endsWith("symbolic") - layer.effect: Colouriser { - colorizationColor: root.modelData.urgency === NotificationUrgency.Critical ? Colours.palette.m3onError : root.modelData.urgency === NotificationUrgency.Low ? Colours.palette.m3onSurface : Colours.palette.m3onTertiaryContainer - } } } -- cgit v1.2.3-freya