From ff890bea3bd1c013a2b376329df559b608ea4340 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 3 Aug 2017 21:40:39 -0600 Subject: 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. --- framework/qml/ContextMenuOverlay.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/qml') 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 { Rectangle { anchors.fill: parent - color: "transparent" - border.color: Kube.Colors.highlightColor - border.width: 1 - visible: mouseArea.containsMouse || menu.visible + color: Kube.Colors.highlightColor + visible: menu.visible + opacity: 0.3 + radius: Kube.Units.smallSpacing } MouseArea { id: mouseArea -- cgit v1.2.3