internal: use multieffect for shadow
This commit is contained in:
parent
3d6b9c2d5d
commit
31f708a1cb
2 changed files with 6 additions and 10 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue