Notification: only display app icon/avatar if the notification requested it
This commit is contained in:
parent
c16e6e7423
commit
b30d3df15c
1 changed files with 5 additions and 6 deletions
|
|
@ -198,15 +198,14 @@ Variants {
|
||||||
Layout.preferredWidth: 40 * scaling
|
Layout.preferredWidth: 40 * scaling
|
||||||
Layout.preferredHeight: 40 * scaling
|
Layout.preferredHeight: 40 * scaling
|
||||||
Layout.alignment: Qt.AlignTop
|
Layout.alignment: Qt.AlignTop
|
||||||
// Start avatar aligned with body (below the summary)
|
|
||||||
anchors.topMargin: textContent.childrenRect.y
|
anchors.topMargin: textContent.childrenRect.y
|
||||||
// Prefer notification-provided image (e.g., user avatar) then fall back to app icon
|
imagePath: model.image && model.image !== "" ? model.image : ""
|
||||||
imagePath: (model.image && model.image !== "") ? model.image : Icons.iconFromName(
|
fallbackIcon: ""
|
||||||
model.appIcon, "application-x-executable")
|
|
||||||
fallbackIcon: "apps"
|
|
||||||
borderColor: Color.transparent
|
borderColor: Color.transparent
|
||||||
borderWidth: 0
|
borderWidth: 0
|
||||||
visible: (imagePath && imagePath !== "")
|
visible: (model.image && model.image !== "")
|
||||||
|
Layout.fillWidth: false
|
||||||
|
Layout.fillHeight: false
|
||||||
}
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue