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/Backgrounds.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/Backgrounds.qml')
| -rw-r--r-- | modules/lock/Backgrounds.qml | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/modules/lock/Backgrounds.qml b/modules/lock/Backgrounds.qml index c8c5db0..2041b99 100644 --- a/modules/lock/Backgrounds.qml +++ b/modules/lock/Backgrounds.qml @@ -1,3 +1,5 @@ +pragma ComponentBehavior: Bound + import "root:/widgets" import "root:/services" import "root:/config" @@ -36,7 +38,15 @@ Item { anchors.fill: parent color: Colours.alpha(Colours.palette.m3surface, false) - visible: false + + layer.enabled: true + layer.effect: MultiEffect { + maskEnabled: true + maskInverted: true + maskSource: mask + maskThresholdMin: 0.5 + maskSpreadAtMin: 1 + } } Item { @@ -59,16 +69,6 @@ Item { } } - MultiEffect { - anchors.fill: parent - source: base - maskEnabled: true - maskInverted: true - maskSource: mask - maskThresholdMin: 0.5 - maskSpreadAtMin: 1 - } - Shape { anchors.fill: parent anchors.margins: Math.floor(innerMask.anchors.margins) |