diff options
Diffstat (limited to 'modules/areapicker')
| -rw-r--r-- | modules/areapicker/Picker.qml | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/modules/areapicker/Picker.qml b/modules/areapicker/Picker.qml index 4a0c537..ce9f743 100644 --- a/modules/areapicker/Picker.qml +++ b/modules/areapicker/Picker.qml @@ -184,11 +184,18 @@ MouseArea { } StyledRect { - id: background - anchors.fill: parent color: Colours.palette.m3secondaryContainer - visible: false + opacity: 0.3 + + layer.enabled: true + layer.effect: MultiEffect { + maskSource: selectionWrapper + maskEnabled: true + maskInverted: true + maskSpreadAtMin: 1 + maskThresholdMin: 0.5 + } } Item { @@ -209,17 +216,6 @@ MouseArea { } } - MultiEffect { - anchors.fill: parent - source: background - maskSource: selectionWrapper - maskEnabled: true - maskInverted: true - maskSpreadAtMin: 1 - maskThresholdMin: 0.5 - opacity: 0.3 - } - Rectangle { color: "transparent" radius: root.realRounding > 0 ? root.realRounding + root.realBorderWidth : 0 |