[ToolButtonStyle] Always indicate activeFocus
Even when flat we should indicate that a ToolButton has focus. This makes keyboard navigation substantially less awkward. CHANGLOG: Improved visibility of keyboard focus on buttons REVIEW: 126567
This commit is contained in:
parent
f639996bec
commit
81a03ef291
@ -144,7 +144,7 @@ QtQuickControlStyle.ButtonStyle {
|
||||
property alias hasOverState: roundShadow.hasOverState
|
||||
Private.RoundShadow {
|
||||
id: roundShadow
|
||||
visible: !style.flat
|
||||
visible: !style.flat || control.activeFocus
|
||||
anchors.fill: parent
|
||||
state: {
|
||||
if (control.pressed) {
|
||||
@ -206,7 +206,7 @@ QtQuickControlStyle.ButtonStyle {
|
||||
|
||||
Private.ButtonShadow {
|
||||
id: shadow
|
||||
visible: !style.flat
|
||||
visible: !style.flat || control.activeFocus
|
||||
anchors.fill: parent
|
||||
state: {
|
||||
if (control.pressed) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user