diff --git a/quickshell/Modules/Notifications/Center/HistoryNotificationCard.qml b/quickshell/Modules/Notifications/Center/HistoryNotificationCard.qml index ce6f527d..5e033e52 100644 --- a/quickshell/Modules/Notifications/Center/HistoryNotificationCard.qml +++ b/quickshell/Modules/Notifications/Center/HistoryNotificationCard.qml @@ -137,7 +137,7 @@ Rectangle { return ""; const appIcon = historyItem.appIcon; if (!appIcon) - return iconFromImage ? "image://icon/" + iconFromImage : ""; + return iconFromImage ? Paths.resolveIconUrl(iconFromImage) : ""; if (appIcon.startsWith("file://") || appIcon.startsWith("http://") || appIcon.startsWith("https://") || appIcon.includes("/")) return appIcon; if (appIcon.startsWith("material:") || appIcon.startsWith("svg:") || appIcon.startsWith("unicode:") || appIcon.startsWith("image:")) diff --git a/quickshell/Modules/Notifications/Center/NotificationCard.qml b/quickshell/Modules/Notifications/Center/NotificationCard.qml index 7f0c7ead..1838f10a 100644 --- a/quickshell/Modules/Notifications/Center/NotificationCard.qml +++ b/quickshell/Modules/Notifications/Center/NotificationCard.qml @@ -215,7 +215,7 @@ Rectangle { return ""; const appIcon = notificationGroup?.latestNotification?.appIcon; if (!appIcon) - return iconFromImage ? "image://icon/" + iconFromImage : ""; + return iconFromImage ? Paths.resolveIconUrl(iconFromImage) : ""; if (appIcon.startsWith("file://") || appIcon.startsWith("http://") || appIcon.startsWith("https://") || appIcon.includes("/")) return appIcon; if (appIcon.startsWith("material:") || appIcon.startsWith("svg:") || appIcon.startsWith("unicode:") || appIcon.startsWith("image:")) @@ -552,7 +552,7 @@ Rectangle { return ""; const appIcon = modelData?.appIcon; if (!appIcon) - return iconFromImage ? "image://icon/" + iconFromImage : ""; + return iconFromImage ? Paths.resolveIconUrl(iconFromImage) : ""; if (appIcon.startsWith("file://") || appIcon.startsWith("http://") || appIcon.startsWith("https://") || appIcon.includes("/")) return appIcon; if (appIcon.startsWith("material:") || appIcon.startsWith("svg:") || appIcon.startsWith("unicode:") || appIcon.startsWith("image:")) diff --git a/quickshell/Modules/Notifications/Popup/NotificationPopup.qml b/quickshell/Modules/Notifications/Popup/NotificationPopup.qml index d30f00dd..823106f1 100644 --- a/quickshell/Modules/Notifications/Popup/NotificationPopup.qml +++ b/quickshell/Modules/Notifications/Popup/NotificationPopup.qml @@ -519,7 +519,7 @@ PanelWindow { return ""; const appIcon = notificationData.appIcon; if (!appIcon) - return iconFromImage ? "image://icon/" + iconFromImage : ""; + return iconFromImage ? Paths.resolveIconUrl(iconFromImage) : ""; if (appIcon.startsWith("file://") || appIcon.startsWith("http://") || appIcon.startsWith("https://") || appIcon.includes("/")) return appIcon; if (appIcon.startsWith("material:") || appIcon.startsWith("svg:") || appIcon.startsWith("unicode:") || appIcon.startsWith("image:"))