diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-04-30 22:37:01 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-01 10:36:32 +0200 |
commit | bbd256f634844453758e5acf85a54a2dbe6965a4 (patch) | |
tree | 0348aa32c041bca09dc2b5e74f3db5d360d52eb1 | |
parent | 67baabf4358fb95a0283f36f2fee1936280b0966 (diff) | |
download | kube-bbd256f634844453758e5acf85a54a2dbe6965a4.tar.gz kube-bbd256f634844453758e5acf85a54a2dbe6965a4.zip |
Show active focus on buttons
Not the proper solution but better than nothing.
-rw-r--r-- | framework/qml/Button.qml | 2 | ||||
-rw-r--r-- | framework/qml/IconButton.qml | 2 | ||||
-rw-r--r-- | framework/qml/PositiveButton.qml | 2 |
3 files changed, 3 insertions, 3 deletions
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 { | |||
38 | 38 | ||
39 | Rectangle { | 39 | Rectangle { |
40 | anchors.fill: parent | 40 | anchors.fill: parent |
41 | visible: root.hovered || root.pressed | 41 | visible: root.hovered || root.pressed || root.activeFocus |
42 | color: root.pressed ? Colors.textColor : Colors.viewBackgroundColor | 42 | color: root.pressed ? Colors.textColor : Colors.viewBackgroundColor |
43 | opacity: 0.2 | 43 | opacity: 0.2 |
44 | } | 44 | } |
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 { | |||
41 | 41 | ||
42 | Rectangle { | 42 | Rectangle { |
43 | anchors.fill: parent | 43 | anchors.fill: parent |
44 | visible: root.hovered || root.pressed | 44 | visible: root.hovered || root.pressed || root.activeFocus |
45 | color: root.pressed ? Kube.Colors.textColor : Kube.Colors.viewBackgroundColor | 45 | color: root.pressed ? Kube.Colors.textColor : Kube.Colors.viewBackgroundColor |
46 | opacity: 0.2 | 46 | opacity: 0.2 |
47 | } | 47 | } |
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 { | |||
38 | 38 | ||
39 | Rectangle { | 39 | Rectangle { |
40 | anchors.fill: parent | 40 | anchors.fill: parent |
41 | visible: root.hovered || root.pressed | 41 | visible: root.hovered || root.pressed || root.activeFocus |
42 | color: root.pressed ? Colors.textColor : Colors.viewBackgroundColor | 42 | color: root.pressed ? Colors.textColor : Colors.viewBackgroundColor |
43 | opacity: 0.2 | 43 | opacity: 0.2 |
44 | } | 44 | } |