C5: render notification image/appIcon in popups and center

This commit is contained in:
Damocles 2026-04-13 16:59:17 +02:00
parent bc3236fce6
commit 3a9cd59243
2 changed files with 34 additions and 4 deletions

View file

@ -136,13 +136,28 @@ PanelWindow {
shadowHorizontalOffset: 0
}
Image {
id: notifIcon
anchors.left: parent.left
anchors.leftMargin: 14
anchors.top: parent.top
anchors.topMargin: 8
width: 36
height: 36
source: popupItem.modelData.image || popupItem.modelData.appIcon || ""
visible: status === Image.Ready
fillMode: Image.PreserveAspectFit
sourceSize: Qt.size(36, 36)
asynchronous: true
}
Column {
id: contentCol
anchors.left: parent.left
anchors.left: notifIcon.visible ? notifIcon.right : parent.left
anchors.right: parent.right
anchors.top: parent.top
anchors.margins: 8
anchors.leftMargin: 14
anchors.leftMargin: notifIcon.visible ? 8 : 14
spacing: 2
// App name + time