From 7f896047896e49bf6feff48b4698482b9463b847 Mon Sep 17 00:00:00 2001 From: miruka Date: Mon, 9 Sep 2019 07:19:06 -0400 Subject: [PATCH] button/checkbox: highlight on activeFocus Not just tab-induced focus. --- src/qml/Base/HButtonBackground.qml | 2 +- src/qml/Base/HCheckBox.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qml/Base/HButtonBackground.qml b/src/qml/Base/HButtonBackground.qml index 4d9accbb..52efb65b 100644 --- a/src/qml/Base/HButtonBackground.qml +++ b/src/qml/Base/HButtonBackground.qml @@ -21,7 +21,7 @@ Rectangle { button.enabled && button.pressed ? buttonTheme.pressedOverlay : - (button.enabled && button.hovered) || button.visualFocus ? + (button.enabled && button.hovered) || button.activeFocus ? buttonTheme.hoveredOverlay : "transparent" diff --git a/src/qml/Base/HCheckBox.qml b/src/qml/Base/HCheckBox.qml index da0fa3d2..011bcded 100644 --- a/src/qml/Base/HCheckBox.qml +++ b/src/qml/Base/HCheckBox.qml @@ -27,7 +27,7 @@ CheckBox { box.enabled && box.pressed ? theme.controls.checkBox.boxPressedBorder : - (box.enabled && box.hovered) || box.visualFocus ? + (box.enabled && box.hovered) || box.activeFocus ? theme.controls.checkBox.boxHoveredBorder : theme.controls.checkBox.boxBorder