Browse Source

Add link text to marketplace search page

Contributes to issue CURA-7071.
Ghostkeeper 5 years ago
parent
commit
e51a1b18be

+ 27 - 8
plugins/Toolbox/resources/qml/components/ToolboxDownloadsShowcase.qml

@@ -14,17 +14,36 @@ Rectangle
     Column
     {
         height: childrenRect.height + 2 * padding
-        spacing: UM.Theme.getSize("default_margin").width
+        spacing: UM.Theme.getSize("default_margin").height
         width: parent.width
         padding: UM.Theme.getSize("wide_margin").height
-        Label
+        Item
         {
-            id: heading
-            text: catalog.i18nc("@label", "Featured")
-            width: parent.width
-            color: UM.Theme.getColor("text_medium")
-            font: UM.Theme.getFont("large")
-            renderType: Text.NativeRendering
+            width: parent.width - parent.padding * 2
+            height: childrenRect.height
+            Label
+            {
+                id: heading
+                text: catalog.i18nc("@label", "Featured")
+                width: contentWidth
+                height: contentHeight
+                color: UM.Theme.getColor("text_medium")
+                font: UM.Theme.getFont("large")
+                renderType: Text.NativeRendering
+            }
+            Label
+            {
+                text: catalog.i18nc("@label", "Search materials")
+                width: parent.width - heading.width
+                height: contentHeight
+                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"
+            }
         }
         Grid
         {