From e39675e447a149fe7dfe7cc74d805c4a1676e763 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 22 Sep 2021 13:44:45 +0200 Subject: [PATCH] Use styled tooltip CURA-8422 --- resources/qml/ApplicationSwitcher/ApplicationButton.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/qml/ApplicationSwitcher/ApplicationButton.qml b/resources/qml/ApplicationSwitcher/ApplicationButton.qml index f90103ab7e..3ea5dc6f37 100644 --- a/resources/qml/ApplicationSwitcher/ApplicationButton.qml +++ b/resources/qml/ApplicationSwitcher/ApplicationButton.qml @@ -18,7 +18,7 @@ Button property color backgroundColor: hovered ? UM.Theme.getColor("primary") : "transparent" Behavior on backgroundColor { ColorAnimation { duration: 200; } } - + hoverEnabled: true width: UM.Theme.getSize("application_switcher_item").width height: UM.Theme.getSize("application_switcher_item").height @@ -29,10 +29,11 @@ Button border.width: UM.Theme.getSize("default_lining").width } - UM.TooltipArea + Cura.ToolTip { id: tooltip - anchors.fill: parent + tooltipText: base.text + visible: base.hovered } Column