From d7802f3c4b594af54817808bf02bb0bacc106868 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 2 Jul 2025 17:09:49 +1000 Subject: internal: use layer.effect Also use clipping rect for wallpaper item --- modules/lock/Backgrounds.qml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'modules/lock/Backgrounds.qml') 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) -- cgit v1.2.3-freya