From 5d6db58d76cc21a90430646ff5530c5d95beb917 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 29 Jun 2025 23:49:45 +0200 Subject: [PATCH] bar: shadow for floating style --- .config/quickshell/modules/bar/Bar.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.config/quickshell/modules/bar/Bar.qml b/.config/quickshell/modules/bar/Bar.qml index bac9f720d..e19b42b10 100644 --- a/.config/quickshell/modules/bar/Bar.qml +++ b/.config/quickshell/modules/bar/Bar.qml @@ -88,8 +88,18 @@ Scope { } } + // Background shadow + Loader { + active: showBarBackground && ConfigOptions.bar.cornerStyle === 1 + anchors.fill: barBackground + sourceComponent: StyledRectangularShadow { + anchors.fill: undefined // The loader's anchors act on this, and this should not have any anchor + target: barBackground + } + } // Background Rectangle { + id: barBackground anchors { fill: parent margins: ConfigOptions.bar.cornerStyle === 1 ? (Appearance.sizes.hyprlandGapsOut) : 0 // idk why but +1 is needed