Notification: prefer notification image over app image
This commit is contained in:
parent
f8ed4f48cf
commit
3ceba43802
4 changed files with 8 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue