shell: new lock anim for bkg and bar

This commit is contained in:
outfoxxed 2025-01-20 03:42:11 -08:00
parent c70822c1f5
commit f6caa3e209
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
8 changed files with 48 additions and 28 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 402 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

View file

@ -0,0 +1,19 @@
import QtQuick
import Quickshell
import "../lock" as Lock
Item {
id: root
required property ShellScreen screen;
property real slideAmount: 1.0 - Lock.Controller.bkgSlide
property alias asynchronous: image.asynchronous;
readonly property real remainingSize: image.sourceSize.height - root.height
Image {
id: image
source: Qt.resolvedUrl((screen?.name == "DP-1" ?? false) ? "5120x1728.png" : "1920x1296.png")
y: -(root.slideAmount * root.remainingSize)
}
}