fix: shift background in accordance with content
This commit is contained in:
@@ -149,9 +149,34 @@ WlSessionLockSurface {
|
||||
Image {
|
||||
id: background
|
||||
|
||||
anchors.bottomMargin: -8 - lockContent.positions[lockContent.positionIndex].y
|
||||
anchors.fill: parent
|
||||
anchors.leftMargin: -8 + lockContent.positions[lockContent.positionIndex].x
|
||||
anchors.rightMargin: -8 - lockContent.positions[lockContent.positionIndex].x
|
||||
anchors.topMargin: -8 + lockContent.positions[lockContent.positionIndex].y
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
source: WallpaperPath.lockscreenBg
|
||||
|
||||
Behavior on anchors.bottomMargin {
|
||||
Anim {
|
||||
duration: 5000
|
||||
}
|
||||
}
|
||||
Behavior on anchors.leftMargin {
|
||||
Anim {
|
||||
duration: 5000
|
||||
}
|
||||
}
|
||||
Behavior on anchors.rightMargin {
|
||||
Anim {
|
||||
duration: 5000
|
||||
}
|
||||
}
|
||||
Behavior on anchors.topMargin {
|
||||
Anim {
|
||||
duration: 5000
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
|
||||
Reference in New Issue
Block a user