summaryrefslogtreecommitdiff
path: root/modules/notifications/Notification.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-14 16:25:46 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-14 16:25:46 +1000
commit04ce9ccbb4a1b4ee8ee1850f90af886412852b9f (patch)
treeaa2ebf44dc59b5bb56c6c0fd9557f7e82e71d1d4 /modules/notifications/Notification.qml
parentnix: extend `hm-module` for CLI config options and add `extraRuntimeDeps` to ... (diff)
downloadcaelestia-shell-04ce9ccbb4a1b4ee8ee1850f90af886412852b9f.tar.gz
caelestia-shell-04ce9ccbb4a1b4ee8ee1850f90af886412852b9f.tar.bz2
caelestia-shell-04ce9ccbb4a1b4ee8ee1850f90af886412852b9f.zip
internal: better colourisation
Diffstat (limited to '')
-rw-r--r--modules/notifications/Notification.qml8
1 files changed, 2 insertions, 6 deletions
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
- }
}
}