summaryrefslogtreecommitdiff
path: root/modules/drawers/Border.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-02 17:09:49 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-02 17:09:49 +1000
commitd7802f3c4b594af54817808bf02bb0bacc106868 (patch)
tree134565d02cf2d2978dcb7bac68774e3ecbb8d092 /modules/drawers/Border.qml
parentinternal: better curve for button ripples (diff)
downloadcaelestia-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/drawers/Border.qml')
-rw-r--r--modules/drawers/Border.qml25
1 files changed, 11 insertions, 14 deletions
diff --git a/modules/drawers/Border.qml b/modules/drawers/Border.qml
index 3dada1f..bcb6cd6 100644
--- a/modules/drawers/Border.qml
+++ b/modules/drawers/Border.qml
@@ -1,7 +1,8 @@
+pragma ComponentBehavior: Bound
+
import "root:/widgets"
import "root:/services"
import "root:/config"
-import Quickshell
import QtQuick
import QtQuick.Effects
@@ -13,11 +14,17 @@ Item {
anchors.fill: parent
StyledRect {
- id: rect
-
anchors.fill: parent
color: Colours.alpha(Colours.palette.m3surface, false)
- visible: false
+
+ layer.enabled: true
+ layer.effect: MultiEffect {
+ maskSource: mask
+ maskEnabled: true
+ maskInverted: true
+ maskThresholdMin: 0.5
+ maskSpreadAtMin: 1
+ }
}
Item {
@@ -34,14 +41,4 @@ Item {
radius: Config.border.rounding
}
}
-
- MultiEffect {
- anchors.fill: parent
- maskEnabled: true
- maskInverted: true
- maskSource: mask
- source: rect
- maskThresholdMin: 0.5
- maskSpreadAtMin: 1
- }
}