From 24163dfa4a328327978a57794f0dfde804c9f6e5 Mon Sep 17 00:00:00 2001 From: Sighthesia <87855491+Sighthesia@users.noreply.github.com> Date: Fri, 3 Oct 2025 01:34:51 +0800 Subject: [PATCH 1/4] bar: fix float bar tint loss --- .config/quickshell/ii/modules/bar/BarContent.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/quickshell/ii/modules/bar/BarContent.qml b/.config/quickshell/ii/modules/bar/BarContent.qml index 7b0a090dc..97447fb4d 100644 --- a/.config/quickshell/ii/modules/bar/BarContent.qml +++ b/.config/quickshell/ii/modules/bar/BarContent.qml @@ -27,7 +27,7 @@ Item { // Bar content region // Background shadow Loader { - active: Config.options.bar.showBackground && Config.options.bar.cornerStyle === 1 + active: false // For bars background color consistency anchors.fill: barBackground sourceComponent: StyledRectangularShadow { anchors.fill: undefined // The loader's anchors act on this, and this should not have any anchor From 31706e27248d25e1df16b77aa170ebb2d01d06d5 Mon Sep 17 00:00:00 2001 From: Sighthesia <87855491+Sighthesia@users.noreply.github.com> Date: Sun, 5 Oct 2025 17:42:25 +0800 Subject: [PATCH 2/4] config: add floatSytleShadow option --- .config/quickshell/ii/modules/common/Config.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/quickshell/ii/modules/common/Config.qml b/.config/quickshell/ii/modules/common/Config.qml index 00e0afd2a..13155d362 100644 --- a/.config/quickshell/ii/modules/common/Config.qml +++ b/.config/quickshell/ii/modules/common/Config.qml @@ -155,6 +155,7 @@ Singleton { } property bool bottom: false // Instead of top property int cornerStyle: 0 // 0: Hug | 1: Float | 2: Plain rectangle + property bool floatStyleShadow: true // Show shadow behind bar when cornerStyle == 1 (Float) property bool borderless: false // true for no grouping of items property string topLeftIcon: "spark" // Options: "distro" or any icon name in ~/.config/quickshell/ii/assets/icons property bool showBackground: true From c1fa902189e4e195ecf51bf5659ed0c866163428 Mon Sep 17 00:00:00 2001 From: Sighthesia <87855491+Sighthesia@users.noreply.github.com> Date: Sun, 5 Oct 2025 17:48:01 +0800 Subject: [PATCH 3/4] bar: change shadow to configurable --- .config/quickshell/ii/modules/bar/BarContent.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/quickshell/ii/modules/bar/BarContent.qml b/.config/quickshell/ii/modules/bar/BarContent.qml index 97447fb4d..9e452f65a 100644 --- a/.config/quickshell/ii/modules/bar/BarContent.qml +++ b/.config/quickshell/ii/modules/bar/BarContent.qml @@ -27,7 +27,7 @@ Item { // Bar content region // Background shadow Loader { - active: false // For bars background color consistency + active: Config.options.bar.showBackground && Config.options.bar.cornerStyle === 1 && Config.options.bar.floatShadow anchors.fill: barBackground sourceComponent: StyledRectangularShadow { anchors.fill: undefined // The loader's anchors act on this, and this should not have any anchor From 3b3be4b6cb102f55f375a7ac20057cc1d06631cf Mon Sep 17 00:00:00 2001 From: Sighthesia <87855491+Sighthesia@users.noreply.github.com> Date: Sun, 5 Oct 2025 17:52:23 +0800 Subject: [PATCH 4/4] fix error option name --- .config/quickshell/ii/modules/bar/BarContent.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/quickshell/ii/modules/bar/BarContent.qml b/.config/quickshell/ii/modules/bar/BarContent.qml index 9e452f65a..111aa77e0 100644 --- a/.config/quickshell/ii/modules/bar/BarContent.qml +++ b/.config/quickshell/ii/modules/bar/BarContent.qml @@ -27,7 +27,7 @@ Item { // Bar content region // Background shadow Loader { - active: Config.options.bar.showBackground && Config.options.bar.cornerStyle === 1 && Config.options.bar.floatShadow + active: Config.options.bar.showBackground && Config.options.bar.cornerStyle === 1 && Config.options.bar.floatStyleShadow anchors.fill: barBackground sourceComponent: StyledRectangularShadow { anchors.fill: undefined // The loader's anchors act on this, and this should not have any anchor