C5: render notification image/appIcon in popups and center
This commit is contained in:
parent
bc3236fce6
commit
3a9cd59243
2 changed files with 34 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue