button/checkbox: highlight on activeFocus

Not just tab-induced focus.
This commit is contained in:
miruka 2019-09-09 07:19:06 -04:00
parent af17151c11
commit 7f89604789
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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