forked from Shinonome/dots-hyprland
background: clock "separate" from bg image
This commit is contained in:
@@ -142,6 +142,7 @@ Scope {
|
|||||||
|
|
||||||
// Wallpaper
|
// Wallpaper
|
||||||
Image {
|
Image {
|
||||||
|
id: wallpaperImage
|
||||||
visible: !bgRoot.wallpaperIsVideo
|
visible: !bgRoot.wallpaperIsVideo
|
||||||
property real value // 0 to 1, for offset
|
property real value // 0 to 1, for offset
|
||||||
value: {
|
value: {
|
||||||
@@ -176,7 +177,7 @@ Scope {
|
|||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
top: parent.top
|
top: parent.top
|
||||||
leftMargin: ((root.fixedClockPosition ? root.fixedClockX : bgRoot.clockX * bgRoot.effectiveWallpaperScale) - implicitWidth / 2)
|
leftMargin: ((root.fixedClockPosition ? root.fixedClockX : bgRoot.clockX * bgRoot.effectiveWallpaperScale) - implicitWidth / 2) - (wallpaperImage.effectiveValue * bgRoot.movableXSpace)
|
||||||
topMargin: ((root.fixedClockPosition ? root.fixedClockY : bgRoot.clockY * bgRoot.effectiveWallpaperScale) - implicitHeight / 2)
|
topMargin: ((root.fixedClockPosition ? root.fixedClockY : bgRoot.clockY * bgRoot.effectiveWallpaperScale) - implicitHeight / 2)
|
||||||
Behavior on leftMargin {
|
Behavior on leftMargin {
|
||||||
animation: Appearance.animation.elementMove.numberAnimation.createObject(this)
|
animation: Appearance.animation.elementMove.numberAnimation.createObject(this)
|
||||||
|
|||||||
Reference in New Issue
Block a user