shell: new lock anim for bkg and bar
This commit is contained in:
parent
c70822c1f5
commit
f6caa3e209
8 changed files with 48 additions and 28 deletions
BIN
modules/user/modules/quickshell/shell/background/1920x1296.png
Normal file
BIN
modules/user/modules/quickshell/shell/background/1920x1296.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 402 KiB |
BIN
modules/user/modules/quickshell/shell/background/5120x1728.png
Normal file
BIN
modules/user/modules/quickshell/shell/background/5120x1728.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 MiB |
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue