Add link text to marketplace search page

Contributes to issue CURA-7071.
This commit is contained in:
Ghostkeeper 2020-01-28 14:19:33 +01:00
parent 1c79193f9a
commit e51a1b18be
No known key found for this signature in database
GPG Key ID: 37E2020986774393

View File

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