summaryrefslogtreecommitdiff
path: root/modules/notifications
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-02 17:09:49 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-02 17:09:49 +1000
commitd7802f3c4b594af54817808bf02bb0bacc106868 (patch)
tree134565d02cf2d2978dcb7bac68774e3ecbb8d092 /modules/notifications
parentinternal: better curve for button ripples (diff)
downloadcaelestia-shell-d7802f3c4b594af54817808bf02bb0bacc106868.tar.gz
caelestia-shell-d7802f3c4b594af54817808bf02bb0bacc106868.tar.bz2
caelestia-shell-d7802f3c4b594af54817808bf02bb0bacc106868.zip
internal: use layer.effect
Also use clipping rect for wallpaper item
Diffstat (limited to 'modules/notifications')
-rw-r--r--modules/notifications/Notification.qml17
1 files changed, 5 insertions, 12 deletions
diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml
index c97a332..1a520c8 100644
--- a/modules/notifications/Notification.qml
+++ b/modules/notifications/Notification.qml
@@ -151,26 +151,19 @@ StyledRect {
asynchronous: true
anchors.centerIn: parent
- visible: !root.modelData.appIcon.endsWith("symbolic")
width: Math.round(parent.width * 0.6)
height: Math.round(parent.width * 0.6)
sourceComponent: IconImage {
- implicitSize: Math.round(parent.width * 0.6)
+ anchors.fill: parent
source: Quickshell.iconPath(root.modelData.appIcon)
asynchronous: true
- }
- }
-
- Loader {
- active: root.modelData.appIcon.endsWith("symbolic")
- asynchronous: true
- anchors.fill: icon
- sourceComponent: Colouriser {
- source: icon
- colorizationColor: 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
+ }
}
}