From 38e7a9e4df3555d187ba8d50ceca7c0a2b7b0ed8 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 28 Jan 2020 14:37:59 +0100 Subject: [PATCH] Turn Marketplace link into an actual link With consistent styling. The original design didn't have the link underlined but since the rest of the Cura UI has it underlined I let that happen here too. Contributes to issue CURA-7071. --- .../components/ToolboxDownloadsShowcase.qml | 28 ++++++++++++------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/plugins/Toolbox/resources/qml/components/ToolboxDownloadsShowcase.qml b/plugins/Toolbox/resources/qml/components/ToolboxDownloadsShowcase.qml index 26d691ea8e..048ef937d1 100644 --- a/plugins/Toolbox/resources/qml/components/ToolboxDownloadsShowcase.qml +++ b/plugins/Toolbox/resources/qml/components/ToolboxDownloadsShowcase.qml @@ -31,18 +31,26 @@ Rectangle font: UM.Theme.getFont("large") renderType: Text.NativeRendering } - Label + UM.TooltipArea { - text: catalog.i18nc("@label", "Search materials") - width: parent.width - heading.width - height: contentHeight + width: childrenRect.width + height: childrenRect.height anchors.right: parent.right - horizontalAlignment: Text.AlignRight - elide: Text.ElideLeft - color: UM.Theme.getColor("text_medium") - font: UM.Theme.getFont("medium") - renderType: Text.NativeRendering - visible: toolbox.viewCategory === "material" + text: catalog.i18nc("@info:tooltip", "Go to Web Marketplace") + Label + { + text: "".arg(toolbox.getWebMarketplaceUrl("materials")) + catalog.i18nc("@label", "Search materials") + "" + width: contentWidth + height: contentHeight + horizontalAlignment: Text.AlignRight + font: UM.Theme.getFont("medium") + renderType: Text.NativeRendering + + linkColor: UM.Theme.getColor("text_link") + onLinkActivated: Qt.openUrlExternally(link) + + visible: toolbox.viewCategory === "material" + } } } Grid