mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Notification: prefer notification image over app image
This commit is contained in:
@@ -200,11 +200,13 @@ Variants {
|
||||
Layout.alignment: Qt.AlignTop
|
||||
// Start avatar aligned with body (below the summary)
|
||||
anchors.topMargin: textContent.childrenRect.y
|
||||
imagePath: Icons.iconFromName(model.appIcon, "application-x-executable")
|
||||
// Prefer notification-provided image (e.g., user avatar) then fall back to app icon
|
||||
imagePath: (model.image && model.image !== "") ? model.image : Icons.iconFromName(
|
||||
model.appIcon, "application-x-executable")
|
||||
fallbackIcon: "apps"
|
||||
borderColor: Color.transparent
|
||||
borderWidth: 0
|
||||
visible: imagePath && imagePath !== ""
|
||||
visible: (imagePath && imagePath !== "")
|
||||
}
|
||||
|
||||
Column {
|
||||
|
||||
Reference in New Issue
Block a user