From c452dd3538148827614b609dab90546e7d9911c9 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 19 Aug 2025 22:10:45 +0700 Subject: [PATCH] horizontal bar: fix oversized pills when floating + fix weather hover hitbox --- .config/quickshell/ii/modules/bar/BarContent.qml | 5 +---- .config/quickshell/ii/modules/bar/weather/WeatherBar.qml | 5 ++--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.config/quickshell/ii/modules/bar/BarContent.qml b/.config/quickshell/ii/modules/bar/BarContent.qml index 7e84a2295..e6bc137e8 100644 --- a/.config/quickshell/ii/modules/bar/BarContent.qml +++ b/.config/quickshell/ii/modules/bar/BarContent.qml @@ -129,7 +129,6 @@ Item { // Bar content region BarGroup { id: middleCenterGroup padding: workspacesWidget.widgetPadding - Layout.fillHeight: true Workspaces { id: workspacesWidget @@ -157,7 +156,6 @@ Item { // Bar content region implicitWidth: rightCenterGroupContent.implicitWidth implicitHeight: rightCenterGroupContent.implicitHeight Layout.preferredWidth: root.centerSideModuleWidth - Layout.fillHeight: true onPressed: { GlobalStates.sidebarRightOpen = !GlobalStates.sidebarRightOpen; @@ -328,8 +326,7 @@ Item { // Bar content region // Weather Loader { - Layout.leftMargin: 8 - Layout.fillHeight: true + Layout.leftMargin: 4 active: Config.options.bar.weather.enable sourceComponent: BarGroup { diff --git a/.config/quickshell/ii/modules/bar/weather/WeatherBar.qml b/.config/quickshell/ii/modules/bar/weather/WeatherBar.qml index 13c3ef7fe..b39228ab6 100644 --- a/.config/quickshell/ii/modules/bar/weather/WeatherBar.qml +++ b/.config/quickshell/ii/modules/bar/weather/WeatherBar.qml @@ -9,10 +9,9 @@ import QtQuick.Layouts MouseArea { id: root - property real margin: 10 property bool hovered: false - implicitWidth: rowLayout.implicitWidth + margin * 2 - implicitHeight: rowLayout.implicitHeight + implicitWidth: rowLayout.implicitWidth + 10 * 2 + implicitHeight: Appearance.sizes.barHeight hoverEnabled: true