From 85a522ba14998a5641c776a154c11f1e69400e6b Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 14 Aug 2025 21:11:40 +0700 Subject: [PATCH] bar: fix weird tooltip hover target --- .config/quickshell/ii/modules/bar/BarContent.qml | 1 - .config/quickshell/ii/modules/bar/BatteryIndicator.qml | 2 +- .config/quickshell/ii/modules/bar/ClockWidget.qml | 2 +- .config/quickshell/ii/modules/bar/Resource.qml | 5 ++++- .config/quickshell/ii/modules/bar/Resources.qml | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.config/quickshell/ii/modules/bar/BarContent.qml b/.config/quickshell/ii/modules/bar/BarContent.qml index 8ba79d70d..53a581977 100644 --- a/.config/quickshell/ii/modules/bar/BarContent.qml +++ b/.config/quickshell/ii/modules/bar/BarContent.qml @@ -246,7 +246,6 @@ Item { // Bar content region } } } - } MouseArea { // Right side | scroll to change volume diff --git a/.config/quickshell/ii/modules/bar/BatteryIndicator.qml b/.config/quickshell/ii/modules/bar/BatteryIndicator.qml index 7c6f18da4..a935cea3a 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: Appearance.sizes.barGroupHeight + implicitHeight: Appearance.sizes.barHeight hoverEnabled: true diff --git a/.config/quickshell/ii/modules/bar/ClockWidget.qml b/.config/quickshell/ii/modules/bar/ClockWidget.qml index d4806a344..52d0aebfd 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: Appearance.sizes.barGroupHeight + implicitHeight: Appearance.sizes.barHeight RowLayout { id: rowLayout diff --git a/.config/quickshell/ii/modules/bar/Resource.qml b/.config/quickshell/ii/modules/bar/Resource.qml index 77f0c7ed1..87b1c751c 100644 --- a/.config/quickshell/ii/modules/bar/Resource.qml +++ b/.config/quickshell/ii/modules/bar/Resource.qml @@ -23,7 +23,7 @@ Item { clip: true visible: width > 0 && height > 0 implicitWidth: resourceRowLayout.x < 0 ? 0 : resourceRowLayout.implicitWidth - implicitHeight: resourceRowLayout.implicitHeight + implicitHeight: Appearance.sizes.barHeight // Helper function to format KB to GB function formatKB(kb) { @@ -34,6 +34,9 @@ Item { id: resourceRowLayout spacing: 2 x: shown ? 0 : -resourceRowLayout.width + anchors { + verticalCenter: parent.verticalCenter + } ClippedFilledCircularProgress { id: resourceCircProg diff --git a/.config/quickshell/ii/modules/bar/Resources.qml b/.config/quickshell/ii/modules/bar/Resources.qml index 86faa649f..e5a7575d6 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: Appearance.sizes.barGroupHeight + implicitHeight: Appearance.sizes.barHeight RowLayout { id: rowLayout