NotificationHistory: even more fixes for appIcon
This commit is contained in:
parent
291ffac102
commit
d16d1c1d26
1 changed files with 9 additions and 10 deletions
|
|
@ -144,18 +144,17 @@ NPanel {
|
||||||
Layout.preferredWidth: 28 * scaling
|
Layout.preferredWidth: 28 * scaling
|
||||||
Layout.preferredHeight: 28 * scaling
|
Layout.preferredHeight: 28 * scaling
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
imagePath: (image
|
// Prefer stable themed icons over transient image paths
|
||||||
&& image !== "") ? image : ((appIcon
|
imagePath: (appIcon
|
||||||
&& appIcon !== "") ? AppIcons.iconFromName(
|
&& appIcon !== "") ? (AppIcons.iconFromName(appIcon, "application-x-executable")
|
||||||
appIcon,
|
|| appIcon) : ((AppIcons.iconForAppId(desktopEntry
|
||||||
"application-x-executable") : AppIcons.iconForAppId(
|
|| appName, "application-x-executable")
|
||||||
desktopEntry || appName,
|
|| (image && image
|
||||||
"application-x-executable"))
|
!== "" ? image : AppIcons.iconFromName("application-x-executable",
|
||||||
|
"application-x-executable"))))
|
||||||
borderColor: Color.transparent
|
borderColor: Color.transparent
|
||||||
borderWidth: 0
|
borderWidth: 0
|
||||||
visible: (image && image !== "") || (appIcon && AppIcons.iconFromName(appIcon,
|
visible: true
|
||||||
"application-x-executable") !== "")
|
|
||||||
|| (AppIcons.iconForAppId(desktopEntry || appName, "application-x-executable") !== "")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Notification content column
|
// Notification content column
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue