internal: use multieffect for shadow

This commit is contained in:
2 * r + 2 * t 2025-06-08 13:28:48 +10:00
parent 3d6b9c2d5d
commit 31f708a1cb
2 changed files with 6 additions and 10 deletions

View file

@ -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 {

View file

@ -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
}