From bbd256f634844453758e5acf85a54a2dbe6965a4 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 30 Apr 2017 22:37:01 +0200 Subject: Show active focus on buttons Not the proper solution but better than nothing. --- framework/qml/Button.qml | 2 +- framework/qml/IconButton.qml | 2 +- framework/qml/PositiveButton.qml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'framework/qml') diff --git a/framework/qml/Button.qml b/framework/qml/Button.qml index 6a3654cc..664d9b3d 100644 --- a/framework/qml/Button.qml +++ b/framework/qml/Button.qml @@ -38,7 +38,7 @@ T.Button { Rectangle { anchors.fill: parent - visible: root.hovered || root.pressed + visible: root.hovered || root.pressed || root.activeFocus color: root.pressed ? Colors.textColor : Colors.viewBackgroundColor opacity: 0.2 } diff --git a/framework/qml/IconButton.qml b/framework/qml/IconButton.qml index a0cd704f..a2a9245d 100644 --- a/framework/qml/IconButton.qml +++ b/framework/qml/IconButton.qml @@ -41,7 +41,7 @@ T.Button { Rectangle { anchors.fill: parent - visible: root.hovered || root.pressed + visible: root.hovered || root.pressed || root.activeFocus color: root.pressed ? Kube.Colors.textColor : Kube.Colors.viewBackgroundColor opacity: 0.2 } diff --git a/framework/qml/PositiveButton.qml b/framework/qml/PositiveButton.qml index fb8aab9b..7ec2e2c8 100644 --- a/framework/qml/PositiveButton.qml +++ b/framework/qml/PositiveButton.qml @@ -38,7 +38,7 @@ T.Button { Rectangle { anchors.fill: parent - visible: root.hovered || root.pressed + visible: root.hovered || root.pressed || root.activeFocus color: root.pressed ? Colors.textColor : Colors.viewBackgroundColor opacity: 0.2 } -- cgit v1.2.3