fix: shift background in accordance with content
This commit is contained in:
@@ -149,9 +149,34 @@ WlSessionLockSurface {
|
|||||||
Image {
|
Image {
|
||||||
id: background
|
id: background
|
||||||
|
|
||||||
|
anchors.bottomMargin: -8 - lockContent.positions[lockContent.positionIndex].y
|
||||||
anchors.fill: parent
|
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
|
fillMode: Image.PreserveAspectCrop
|
||||||
source: WallpaperPath.lockscreenBg
|
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 {
|
Item {
|
||||||
|
|||||||
Reference in New Issue
Block a user