summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-08 13:28:48 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-08 13:28:48 +1000
commit31f708a1cbb646be1e9499d878b64d155bdae9d3 (patch)
tree50d0c77a25ee5215f267c6985225cf2825c31f10
parentreadme: add deps and stonks (diff)
downloadcaelestia-shell-31f708a1cbb646be1e9499d878b64d155bdae9d3.tar.gz
caelestia-shell-31f708a1cbb646be1e9499d878b64d155bdae9d3.tar.bz2
caelestia-shell-31f708a1cbb646be1e9499d878b64d155bdae9d3.zip
internal: use multieffect for shadow
-rw-r--r--modules/drawers/Drawers.qml7
-rw-r--r--widgets/LayerShadow.qml9
2 files changed, 6 insertions, 10 deletions
diff --git a/modules/drawers/Drawers.qml b/modules/drawers/Drawers.qml
index 23520e1..9930c6d 100644
--- a/modules/drawers/Drawers.qml
+++ b/modules/drawers/Drawers.qml
@@ -8,6 +8,7 @@ import Quickshell
import Quickshell.Wayland
import Quickshell.Hyprland
import QtQuick
+import QtQuick.Effects
Variants {
model: Quickshell.screens
@@ -100,8 +101,12 @@ Variants {
}
}
- LayerShadow {
+ MultiEffect {
+ anchors.fill: source
source: background
+ shadowEnabled: true
+ blurMax: 15
+ shadowColor: Qt.alpha(Colours.palette.m3shadow, 0.7)
}
PersistentProperties {
diff --git a/widgets/LayerShadow.qml b/widgets/LayerShadow.qml
deleted file mode 100644
index b5f84c9..0000000
--- a/widgets/LayerShadow.qml
+++ /dev/null
@@ -1,9 +0,0 @@
-import "root:/services"
-import Qt5Compat.GraphicalEffects
-
-DropShadow {
- anchors.fill: source
- color: Qt.alpha(Colours.palette.m3shadow, 0.7)
- radius: 10
- samples: 1 + radius * 2
-}