wallpaper selection
This commit is contained in:
parent
3d1816c0f1
commit
2bfa0c189a
5 changed files with 157 additions and 7 deletions
32
modules/wallpaper/Wallpaper.qml
Normal file
32
modules/wallpaper/Wallpaper.qml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
import qs.services
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
|
||||
StackView {
|
||||
id: stack
|
||||
property url wallpaper: WallpaperService.currentWallpaper
|
||||
|
||||
anchors.fill: parent
|
||||
|
||||
replaceEnter: Transition {
|
||||
OpacityAnimator {
|
||||
from: 0.0
|
||||
to: 1.0
|
||||
duration: 1000
|
||||
}
|
||||
}
|
||||
replaceExit: Transition {
|
||||
PauseAnimation {
|
||||
duration: 1100
|
||||
}
|
||||
}
|
||||
|
||||
Component {
|
||||
id: img
|
||||
Image {}
|
||||
}
|
||||
|
||||
onWallpaperChanged: stack.replace(img, {
|
||||
"source": stack.wallpaper
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue