From 955a5ba7f22fd1b1b5e4b713c1e0c743c5fe7856 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 14 Aug 2025 15:47:18 +0700 Subject: [PATCH] bar: not repeat 32 (visual group height) --- .config/quickshell/ii/modules/bar/Bar.qml | 1 - .config/quickshell/ii/modules/bar/BatteryIndicator.qml | 2 +- .config/quickshell/ii/modules/bar/ClockWidget.qml | 2 +- .config/quickshell/ii/modules/bar/Resources.qml | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.config/quickshell/ii/modules/bar/Bar.qml b/.config/quickshell/ii/modules/bar/Bar.qml index 218e24567..120f8bc7e 100644 --- a/.config/quickshell/ii/modules/bar/Bar.qml +++ b/.config/quickshell/ii/modules/bar/Bar.qml @@ -139,7 +139,6 @@ Scope { top: barContent.bottom bottom: undefined } - width: parent.width height: Appearance.rounding.screenRounding active: showBarBackground && Config.options.bar.cornerStyle === 0 // Hug diff --git a/.config/quickshell/ii/modules/bar/BatteryIndicator.qml b/.config/quickshell/ii/modules/bar/BatteryIndicator.qml index 19eba74fc..7c6f18da4 100644 --- a/.config/quickshell/ii/modules/bar/BatteryIndicator.qml +++ b/.config/quickshell/ii/modules/bar/BatteryIndicator.qml @@ -14,7 +14,7 @@ MouseArea { readonly property bool isLow: percentage <= Config.options.battery.low / 100 implicitWidth: rowLayout.implicitWidth + rowLayout.spacing * 2 - implicitHeight: 32 + implicitHeight: Appearance.sizes.barGroupHeight hoverEnabled: true diff --git a/.config/quickshell/ii/modules/bar/ClockWidget.qml b/.config/quickshell/ii/modules/bar/ClockWidget.qml index 6f335de23..d4806a344 100644 --- a/.config/quickshell/ii/modules/bar/ClockWidget.qml +++ b/.config/quickshell/ii/modules/bar/ClockWidget.qml @@ -11,7 +11,7 @@ Item { property bool borderless: Config.options.bar.borderless property bool showDate: Config.options.bar.verbose implicitWidth: rowLayout.implicitWidth - implicitHeight: 32 + implicitHeight: Appearance.sizes.barGroupHeight RowLayout { id: rowLayout diff --git a/.config/quickshell/ii/modules/bar/Resources.qml b/.config/quickshell/ii/modules/bar/Resources.qml index f526decd4..86faa649f 100644 --- a/.config/quickshell/ii/modules/bar/Resources.qml +++ b/.config/quickshell/ii/modules/bar/Resources.qml @@ -10,7 +10,7 @@ Item { property bool borderless: Config.options.bar.borderless property bool alwaysShowAllResources: false implicitWidth: rowLayout.implicitWidth + rowLayout.anchors.leftMargin + rowLayout.anchors.rightMargin - implicitHeight: 32 + implicitHeight: Appearance.sizes.barGroupHeight RowLayout { id: rowLayout