[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
|
property alias hasOverState: roundShadow.hasOverState
|
||||||
Private.RoundShadow {
|
Private.RoundShadow {
|
||||||
id: roundShadow
|
id: roundShadow
|
||||||
visible: !style.flat
|
visible: !style.flat || control.activeFocus
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
state: {
|
state: {
|
||||||
if (control.pressed) {
|
if (control.pressed) {
|
||||||
@ -206,7 +206,7 @@ QtQuickControlStyle.ButtonStyle {
|
|||||||
|
|
||||||
Private.ButtonShadow {
|
Private.ButtonShadow {
|
||||||
id: shadow
|
id: shadow
|
||||||
visible: !style.flat
|
visible: !style.flat || control.activeFocus
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
state: {
|
state: {
|
||||||
if (control.pressed) {
|
if (control.pressed) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user