feat: async notifs and osd
This commit is contained in:
parent
789c3fb6da
commit
344ec92cc5
2 changed files with 5 additions and 0 deletions
|
|
@ -109,6 +109,7 @@ StyledRect {
|
|||
Loader {
|
||||
id: image
|
||||
|
||||
asynchronous: true
|
||||
active: root.hasImage
|
||||
|
||||
anchors.left: parent.left
|
||||
|
|
@ -137,6 +138,7 @@ StyledRect {
|
|||
Loader {
|
||||
id: appIcon
|
||||
|
||||
asynchronous: true
|
||||
active: root.hasAppIcon || !root.hasImage
|
||||
|
||||
anchors.horizontalCenter: root.hasImage ? undefined : image.horizontalCenter
|
||||
|
|
@ -153,6 +155,7 @@ StyledRect {
|
|||
Loader {
|
||||
id: icon
|
||||
|
||||
asynchronous: true
|
||||
active: root.hasAppIcon
|
||||
|
||||
anchors.centerIn: parent
|
||||
|
|
@ -169,6 +172,7 @@ StyledRect {
|
|||
}
|
||||
|
||||
Loader {
|
||||
asynchronous: true
|
||||
active: !root.hasAppIcon
|
||||
anchors.centerIn: parent
|
||||
anchors.horizontalCenterOffset: -Appearance.font.size.large * 0.02
|
||||
|
|
|
|||
|
|
@ -109,6 +109,7 @@ Item {
|
|||
component WrappedLoader: Loader {
|
||||
required property bool shouldBeActive
|
||||
|
||||
asynchronous: true
|
||||
Layout.preferredHeight: shouldBeActive ? Config.osd.sizes.sliderHeight : 0
|
||||
opacity: shouldBeActive ? 1 : 0
|
||||
active: opacity > 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue