mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
background: fix(??) bg clock paralax (??)
This commit is contained in:
@@ -271,12 +271,12 @@ Variants {
|
|||||||
leftMargin: {
|
leftMargin: {
|
||||||
const clockXOnWallpaper = bgRoot.movableXSpace + ((root.fixedClockPosition ? root.fixedClockX : bgRoot.clockX * bgRoot.effectiveWallpaperScale) - implicitWidth / 2)
|
const clockXOnWallpaper = bgRoot.movableXSpace + ((root.fixedClockPosition ? root.fixedClockX : bgRoot.clockX * bgRoot.effectiveWallpaperScale) - implicitWidth / 2)
|
||||||
const extraMove = (wallpaper.effectiveValueX * 2 * bgRoot.movableXSpace) * (root.clockParallaxFactor - 1);
|
const extraMove = (wallpaper.effectiveValueX * 2 * bgRoot.movableXSpace) * (root.clockParallaxFactor - 1);
|
||||||
return clockXOnWallpaper + extraMove;
|
return clockXOnWallpaper - extraMove;
|
||||||
}
|
}
|
||||||
topMargin: {
|
topMargin: {
|
||||||
const clockYOnWallpaper = bgRoot.movableYSpace + ((root.fixedClockPosition ? root.fixedClockY : bgRoot.clockY * bgRoot.effectiveWallpaperScale) - implicitHeight / 2)
|
const clockYOnWallpaper = bgRoot.movableYSpace + ((root.fixedClockPosition ? root.fixedClockY : bgRoot.clockY * bgRoot.effectiveWallpaperScale) - implicitHeight / 2)
|
||||||
const extraMove = (wallpaper.effectiveValueY * 2 * bgRoot.movableYSpace) * (root.clockParallaxFactor - 1);
|
const extraMove = (wallpaper.effectiveValueY * 2 * bgRoot.movableYSpace) * (root.clockParallaxFactor - 1);
|
||||||
return clockYOnWallpaper + extraMove;
|
return clockYOnWallpaper - extraMove;
|
||||||
}
|
}
|
||||||
Behavior on leftMargin {
|
Behavior on leftMargin {
|
||||||
animation: Appearance.animation.elementMove.numberAnimation.createObject(this)
|
animation: Appearance.animation.elementMove.numberAnimation.createObject(this)
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ Singleton {
|
|||||||
property bool enableWorkspace: true
|
property bool enableWorkspace: true
|
||||||
property real workspaceZoom: 1.07 // Relative to your screen, not wallpaper size
|
property real workspaceZoom: 1.07 // Relative to your screen, not wallpaper size
|
||||||
property bool enableSidebar: true
|
property bool enableSidebar: true
|
||||||
property real clockFactor: 1.01
|
property real clockFactor: 1.13
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -507,5 +507,9 @@
|
|||||||
"Select language": "Select language",
|
"Select language": "Select language",
|
||||||
"Generate translation with Gemini": "Generate translation with Gemini",
|
"Generate translation with Gemini": "Generate translation with Gemini",
|
||||||
"Generating...\nDon't close this window!": "Generating...\nDon't close this window!",
|
"Generating...\nDon't close this window!": "Generating...\nDon't close this window!",
|
||||||
"Generate\nTypically takes 2 minutes": "Generate\nTypically takes 2 minutes"
|
"Generate\nTypically takes 2 minutes": "Generate\nTypically takes 2 minutes",
|
||||||
|
"Use system file picker": "Use system file picker",
|
||||||
|
"Wallpaper selector": "Wallpaper selector",
|
||||||
|
"but force at absolute corner": "but force at absolute corner",
|
||||||
|
"When the previous option is off and this is on,\nyou can still hover the corner's end to open sidebar,\nand the remaining area can be used for volume/brightness scroll": "When the previous option is off and this is on,\nyou can still hover the corner's end to open sidebar,\nand the remaining area can be used for volume/brightness scroll"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user