mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 07:52:50 -05:00
optimize wallpaper
This commit is contained in:
@@ -104,13 +104,21 @@ LazyLoader {
|
|||||||
fillMode: Image.PreserveAspectCrop
|
fillMode: Image.PreserveAspectCrop
|
||||||
smooth: true
|
smooth: true
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
cache: true
|
cache: false
|
||||||
|
sourceSize.width: parent.width
|
||||||
|
sourceSize.height: parent.height
|
||||||
|
|
||||||
opacity: 0
|
opacity: 0
|
||||||
|
|
||||||
onStatusChanged: {
|
onStatusChanged: {
|
||||||
if (status === Image.Ready)
|
if (status === Image.Ready) {
|
||||||
root.current = this
|
root.current = this
|
||||||
|
if (root.current === one && two.source) {
|
||||||
|
two.source = ""
|
||||||
|
} else if (root.current === two && one.source) {
|
||||||
|
one.source = ""
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
states: State {
|
states: State {
|
||||||
|
|||||||
Reference in New Issue
Block a user