NPanel: Subtle dropshadow test

This commit is contained in:
ItsLemmy
2025-11-01 00:26:47 -04:00
parent 3ab7843707
commit 399ae2e42f
+12
View File
@@ -1,4 +1,5 @@
import QtQuick
import QtQuick.Effects
import Quickshell
import Quickshell.Wayland
import qs.Commons
@@ -219,6 +220,17 @@ Loader {
bottomLeftRadius: Style.radiusL
bottomRightRadius: Style.radiusL
// Drop shadow effect
layer.enabled: true
layer.effect: MultiEffect {
shadowEnabled: true
shadowBlur: 0.85
shadowOpacity: 0.45
shadowColor: Color.mShadow
shadowHorizontalOffset: (barPosition === "left" || barPosition === "top") ? 6 : - 6
shadowVerticalOffset: (barPosition === "left" || barPosition === "top") ? 6 : - 6
}
// Set inverted corners based on panel anchors and bar position
// Top-left corner