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.preferredHeight: 28 * scaling
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
imagePath: (image
|
||||
&& image !== "") ? image : ((appIcon
|
||||
&& appIcon !== "") ? AppIcons.iconFromName(
|
||||
appIcon,
|
||||
"application-x-executable") : AppIcons.iconForAppId(
|
||||
desktopEntry || appName,
|
||||
"application-x-executable"))
|
||||
// Prefer stable themed icons over transient image paths
|
||||
imagePath: (appIcon
|
||||
&& appIcon !== "") ? (AppIcons.iconFromName(appIcon, "application-x-executable")
|
||||
|| appIcon) : ((AppIcons.iconForAppId(desktopEntry
|
||||
|| appName, "application-x-executable")
|
||||
|| (image && image
|
||||
!== "" ? image : AppIcons.iconFromName("application-x-executable",
|
||||
"application-x-executable"))))
|
||||
borderColor: Color.transparent
|
||||
borderWidth: 0
|
||||
visible: (image && image !== "") || (appIcon && AppIcons.iconFromName(appIcon,
|
||||
"application-x-executable") !== "")
|
||||
|| (AppIcons.iconForAppId(desktopEntry || appName, "application-x-executable") !== "")
|
||||
visible: true
|
||||
}
|
||||
|
||||
// Notification content column
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue