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/areapicker/Picker.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/areapicker/Picker.qml')
| -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 |