diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-02 17:09:49 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-02 17:09:49 +1000 |
| commit | d7802f3c4b594af54817808bf02bb0bacc106868 (patch) | |
| tree | 134565d02cf2d2978dcb7bac68774e3ecbb8d092 /modules/lock/LockSurface.qml | |
| parent | internal: better curve for button ripples (diff) | |
| download | caelestia-shell-d7802f3c4b594af54817808bf02bb0bacc106868.tar.gz caelestia-shell-d7802f3c4b594af54817808bf02bb0bacc106868.tar.bz2 caelestia-shell-d7802f3c4b594af54817808bf02bb0bacc106868.zip | |
internal: use layer.effect
Also use clipping rect for wallpaper item
Diffstat (limited to 'modules/lock/LockSurface.qml')
| -rw-r--r-- | modules/lock/LockSurface.qml | 43 |
1 files changed, 18 insertions, 25 deletions
diff --git a/modules/lock/LockSurface.qml b/modules/lock/LockSurface.qml index 83fb89f..0ad4c3a 100644 --- a/modules/lock/LockSurface.qml +++ b/modules/lock/LockSurface.qml @@ -40,30 +40,25 @@ WlSessionLockSurface { } ScreencopyView { - id: screencopy - - anchors.fill: parent - captureSource: root.screen - visible: false - } - - MultiEffect { id: background anchors.fill: parent + captureSource: root.screen - source: screencopy - autoPaddingEnabled: false - blurEnabled: true - blur: root.locked ? 1 : 0 - blurMax: 64 - blurMultiplier: 1 + layer.enabled: true + layer.effect: MultiEffect { + autoPaddingEnabled: false + blurEnabled: true + blur: root.locked ? 1 : 0 + blurMax: 64 + blurMultiplier: 1 - Behavior on opacity { - Anim {} + Behavior on blur { + Anim {} + } } - Behavior on blur { + Behavior on opacity { Anim {} } } @@ -79,15 +74,13 @@ WlSessionLockSurface { statusHeight: status.item?.nonAnimHeight ?? 0 isNormal: root.screen.width > Config.lock.sizes.smallScreenWidth isLarge: root.screen.width > Config.lock.sizes.largeScreenWidth - visible: false - } - MultiEffect { - anchors.fill: source - source: backgrounds - shadowEnabled: true - blurMax: 15 - shadowColor: Qt.alpha(Colours.palette.m3shadow, 0.7) + layer.enabled: true + layer.effect: MultiEffect { + shadowEnabled: true + blurMax: 15 + shadowColor: Qt.alpha(Colours.palette.m3shadow, 0.7) + } } Clock { |