diff --git a/Widgets/NPanel.qml b/Widgets/NPanel.qml index 0f0f8c6d..1b4baf77 100644 --- a/Widgets/NPanel.qml +++ b/Widgets/NPanel.qml @@ -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