summaryrefslogtreecommitdiffstats
path: root/framework/qml/IconButton.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-22 01:10:35 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-22 01:10:35 +0200
commitaba499f81e0e260c6bf6410e28203fa0b05264db (patch)
treef4df521fe8c9a39256d94ca691b636c19d96835c /framework/qml/IconButton.qml
parent56e40fa2fad55c9b1da2ba4c87f66c319e2db1ee (diff)
downloadkube-aba499f81e0e260c6bf6410e28203fa0b05264db.tar.gz
kube-aba499f81e0e260c6bf6410e28203fa0b05264db.zip
Use the visualFocus property instaed of activeFocus
The activeFocus remains after clicking an element.
Diffstat (limited to 'framework/qml/IconButton.qml')
-rw-r--r--framework/qml/IconButton.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/qml/IconButton.qml b/framework/qml/IconButton.qml
index 6c18ed0e..3be0b887 100644
--- a/framework/qml/IconButton.qml
+++ b/framework/qml/IconButton.qml
@@ -38,11 +38,11 @@ T.Button {
38 background: Rectangle { 38 background: Rectangle {
39 color: Kube.Colors.focusedButtonColor 39 color: Kube.Colors.focusedButtonColor
40 40
41 visible: root.hovered || root.activeFocus 41 visible: root.hovered || root.visualFocus
42 42
43 Rectangle { 43 Rectangle {
44 anchors.fill: parent 44 anchors.fill: parent
45 visible: root.hovered || root.pressed || root.activeFocus 45 visible: root.hovered || root.pressed
46 color: root.pressed ? Kube.Colors.textColor : Kube.Colors.viewBackgroundColor 46 color: root.pressed ? Kube.Colors.textColor : Kube.Colors.viewBackgroundColor
47 opacity: 0.2 47 opacity: 0.2
48 } 48 }