background: add fade when switching

This commit is contained in:
end-4
2025-08-08 18:31:52 +07:00
parent 8aa776ae62
commit 3d408b18f7
2 changed files with 11 additions and 7 deletions
@@ -148,7 +148,11 @@ Variants {
// Wallpaper
Image {
id: wallpaper
visible: !bgRoot.wallpaperIsVideo
visible: opacity > 0
opacity: (status === Image.Ready && !bgRoot.wallpaperIsVideo) ? 1 : 0
Behavior on opacity {
animation: Appearance.animation.elementMoveEnter.numberAnimation.createObject(this)
}
property real value // 0 to 1, for offset
asynchronous: true
value: {