mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-06 05:25:41 -05:00
No DankIcon in notifications
This commit is contained in:
@@ -133,10 +133,8 @@ Rectangle {
|
||||
}
|
||||
|
||||
hasImage: hasNotificationImage
|
||||
fallbackIcon: notificationGroup?.latestNotification?.appIcon || "notifications"
|
||||
fallbackIcon: ""
|
||||
fallbackText: {
|
||||
if (hasNotificationImage || (notificationGroup?.latestNotification?.appIcon && notificationGroup.latestNotification.appIcon !== ""))
|
||||
return ""
|
||||
const appName = notificationGroup?.appName || "?"
|
||||
return appName.charAt(0).toUpperCase()
|
||||
}
|
||||
@@ -390,21 +388,11 @@ Rectangle {
|
||||
return ""
|
||||
}
|
||||
|
||||
fallbackIcon: {
|
||||
if (modelData?.appIcon && !hasNotificationImage) {
|
||||
const appIcon = modelData.appIcon
|
||||
if (!appIcon.startsWith("file://") && !appIcon.startsWith("http://") && !appIcon.startsWith("https://"))
|
||||
return appIcon
|
||||
}
|
||||
return "notifications"
|
||||
}
|
||||
fallbackIcon: ""
|
||||
|
||||
fallbackText: {
|
||||
if (!hasNotificationImage && (!modelData?.appIcon || modelData.appIcon === "")) {
|
||||
const appName = modelData?.appName || "?"
|
||||
return appName.charAt(0).toUpperCase()
|
||||
}
|
||||
return ""
|
||||
const appName = modelData?.appName || "?"
|
||||
return appName.charAt(0).toUpperCase()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -316,10 +316,8 @@ PanelWindow {
|
||||
}
|
||||
|
||||
hasImage: hasNotificationImage
|
||||
fallbackIcon: notificationData?.appIcon || "notifications"
|
||||
fallbackIcon: ""
|
||||
fallbackText: {
|
||||
if (hasNotificationImage || (notificationData?.appIcon && notificationData.appIcon !== ""))
|
||||
return ""
|
||||
const appName = notificationData?.appName || "?"
|
||||
return appName.charAt(0).toUpperCase()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user