summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-08-03 21:40:39 -0600
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-08-03 21:40:39 -0600
commitff890bea3bd1c013a2b376329df559b608ea4340 (patch)
tree206aa90b669466aca0ae404c36c9c383480fe4fd
parentc03b3427150f2431c61e49efc6e0440828be9644 (diff)
downloadkube-ff890bea3bd1c013a2b376329df559b608ea4340.tar.gz
kube-ff890bea3bd1c013a2b376329df559b608ea4340.zip
Only highlight on right-click
With the highlight on hover the items look clickable, but they are not. Further The UI starts to blink if you run the curser accross a couple of labels. The new behaviour is more in line with what i.e. browsers do with links or alike. The highglight was also turned into a softer full overlay instead of just a border.
-rw-r--r--framework/qml/ContextMenuOverlay.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/qml/ContextMenuOverlay.qml b/framework/qml/ContextMenuOverlay.qml
index 472b6f4d..e56bb6df 100644
--- a/framework/qml/ContextMenuOverlay.qml
+++ b/framework/qml/ContextMenuOverlay.qml
@@ -38,10 +38,10 @@ Item {
38 38
39 Rectangle { 39 Rectangle {
40 anchors.fill: parent 40 anchors.fill: parent
41 color: "transparent" 41 color: Kube.Colors.highlightColor
42 border.color: Kube.Colors.highlightColor 42 visible: menu.visible
43 border.width: 1 43 opacity: 0.3
44 visible: mouseArea.containsMouse || menu.visible 44 radius: Kube.Units.smallSpacing
45 } 45 }
46 MouseArea { 46 MouseArea {
47 id: mouseArea 47 id: mouseArea