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