From 399ae2e42f2888327025a3cc5aa02364d0e6cadb Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Sat, 1 Nov 2025 00:26:47 -0400 Subject: [PATCH] NPanel: Subtle dropshadow test --- Widgets/NPanel.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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