From 05ceff017d32dfe1839393c876737c73304e101f Mon Sep 17 00:00:00 2001 From: notiant <238434866+notiant@users.noreply.github.com> Date: Sat, 29 Nov 2025 16:45:05 +0100 Subject: [PATCH] Reduce tooltip delay if bar widget doesn't expand --- Modules/Bar/Extras/BarPillHorizontal.qml | 2 +- Modules/Bar/Extras/BarPillVertical.qml | 2 +- Modules/Bar/Widgets/Bluetooth.qml | 2 +- Modules/Bar/Widgets/WiFi.qml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/Bar/Extras/BarPillHorizontal.qml b/Modules/Bar/Extras/BarPillHorizontal.qml index 107dc96c..9adb2629 100644 --- a/Modules/Bar/Extras/BarPillHorizontal.qml +++ b/Modules/Bar/Extras/BarPillHorizontal.qml @@ -263,7 +263,7 @@ Item { onEntered: { hovered = true; root.entered(); - TooltipService.show(pill, root.tooltipText, BarService.getTooltipDirection(), Style.tooltipDelayLong); + TooltipService.show(pill, root.tooltipText, BarService.getTooltipDirection(), (forceOpen || forceClose) ? Style.tooltipDelay : Style.tooltipDelayLong); if (forceClose) { return; } diff --git a/Modules/Bar/Extras/BarPillVertical.qml b/Modules/Bar/Extras/BarPillVertical.qml index b8ab6859..23c56008 100644 --- a/Modules/Bar/Extras/BarPillVertical.qml +++ b/Modules/Bar/Extras/BarPillVertical.qml @@ -294,7 +294,7 @@ Item { onEntered: { hovered = true; root.entered(); - TooltipService.show(pill, root.tooltipText, BarService.getTooltipDirection(), Style.tooltipDelayLong); + TooltipService.show(pill, root.tooltipText, BarService.getTooltipDirection(), (forceOpen || forceClose) ? Style.tooltipDelay : Style.tooltipDelayLong); if (forceClose) { return; } diff --git a/Modules/Bar/Widgets/Bluetooth.qml b/Modules/Bar/Widgets/Bluetooth.qml index 958d5b31..610f8767 100644 --- a/Modules/Bar/Widgets/Bluetooth.qml +++ b/Modules/Bar/Widgets/Bluetooth.qml @@ -87,7 +87,7 @@ Item { } autoHide: false forceOpen: !isBarVertical && root.displayMode === "alwaysShow" - forceClose: isBarVertical || root.displayMode === "alwaysHide" || text == "" + forceClose: isBarVertical || root.displayMode === "alwaysHide" || text === "" onClicked: PanelService.getPanel("bluetoothPanel", screen)?.toggle(this) onRightClicked: { var popupMenuWindow = PanelService.getPopupMenuWindow(screen); diff --git a/Modules/Bar/Widgets/WiFi.qml b/Modules/Bar/Widgets/WiFi.qml index 37ace39c..60b70f25 100644 --- a/Modules/Bar/Widgets/WiFi.qml +++ b/Modules/Bar/Widgets/WiFi.qml @@ -109,7 +109,7 @@ Item { } autoHide: false forceOpen: !isBarVertical && root.displayMode === "alwaysShow" - forceClose: isBarVertical || root.displayMode === "alwaysHide" || text == "" + forceClose: isBarVertical || root.displayMode === "alwaysHide" || text === "" onClicked: PanelService.getPanel("wifiPanel", screen)?.toggle(this) onRightClicked: { var popupMenuWindow = PanelService.getPopupMenuWindow(screen);