Fix tooltip for activity info.
authorCamila <hello@camila.codes>
Tue, 8 Sep 2020 14:43:45 +0000 (16:43 +0200)
committerCamila <hello@camila.codes>
Wed, 9 Sep 2020 18:06:46 +0000 (20:06 +0200)
Also improves readability of the items in the list.

Signed-off-by: Camila <hello@camila.codes>
src/gui/tray/Window.qml

index c6be85c229c8a3730398bb9e10f7fd3d0e3f6c59..ee2bff8417078fe0f777ac612a22e511b50f86bc 100644 (file)
@@ -471,6 +471,7 @@ Window {
                 spacing: 0\r
 \r
                 MouseArea {\r
+                    id: activityMouseArea\r
                     enabled: (path !== "" || link !== "")\r
                     anchors.left: activityItem.left\r
                     anchors.right: ((shareButton.visible) ? shareButton.left : activityItem.right)\r
@@ -484,9 +485,7 @@ Window {
                             Qt.openUrlExternally(link)\r
                         }\r
                     }\r
-                    ToolTip.visible: hovered\r
-                    ToolTip.delay: 1000\r
-                    ToolTip.text: path !== "" ? qsTr("Open sync item locally") : qsTr("Open URL")\r
+\r
                     Rectangle {\r
                         anchors.fill: parent\r
                         color: (parent.containsMouse ? Style.lightHover : "transparent")\r
@@ -543,6 +542,13 @@ Window {
                         font.pixelSize: Style.subLinePixelSize\r
                         color: "#808080"\r
                     }\r
+\r
+                    ToolTip {\r
+                        visible: activityMouseArea.containsMouse\r
+                        text: activityTextTitle.text\r
+                        delay: 250\r
+                        timeout: 3000\r
+                    }\r
                 }\r
                 Button {\r
                     id: shareButton\r