From 75ab4b5b21d86eab8728c7a0c7b167787b29e798 Mon Sep 17 00:00:00 2001 From: Lemmy Date: Tue, 10 Feb 2026 21:29:25 -0500 Subject: [PATCH] NIconButtonHot: Hover state is always prioritized --- Widgets/NIconButtonHot.qml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Widgets/NIconButtonHot.qml b/Widgets/NIconButtonHot.qml index 13f35b52b..7eccbe1d7 100644 --- a/Widgets/NIconButtonHot.qml +++ b/Widgets/NIconButtonHot.qml @@ -47,15 +47,13 @@ Rectangle { // Appearance opacity: root.enabled ? Style.opacityFull : Style.opacityMedium color: { - if (pressed) { + if (root.enabled && root.hovering || pressed) { return colorBgHover; } + if (hot) { return colorBgHot; } - if (root.enabled && root.hovering) { - return colorBgHover; - } return colorBg; } radius: Math.min(Style.iRadiusL, width / 2) @@ -76,15 +74,12 @@ Rectangle { pointSize: Math.max(1, Math.round(root.width * 0.48)) applyUiScale: root.applyUiScale color: { - if (pressed) { + if (root.enabled && root.hovering || pressed) { return colorFgHover; } if (hot) { return colorFgHot; } - if (root.enabled && root.hovering) { - return colorFgHover; - } return colorFg; } // Center horizontally