Add basic layout for button to load more packages

Contributes to issue CURA-8556.
This commit is contained in:
Ghostkeeper 2021-10-21 17:34:14 +02:00
parent 27da03d862
commit 35ec8f7190
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
2 changed files with 40 additions and 0 deletions

View file

@ -40,5 +40,42 @@ ScrollView
}
}
}
Button
{
id: loadMoreButton
width: parent.width
height: UM.Theme.getSize("card").height
background: Rectangle
{
anchors.fill: parent
radius: UM.Theme.getSize("default_radius").width
color: UM.Theme.getColor("main_background")
}
Row
{
anchors.centerIn: parent
spacing: UM.Theme.getSize("thin_margin").width
UM.RecolorImage
{
width: UM.Theme.getSize("small_button_icon").width
height: UM.Theme.getSize("small_button_icon").height
anchors.verticalCenter: loadMoreLabel.verticalCenter
source: UM.Theme.getIcon("ArrowDown")
color: UM.Theme.getColor("primary")
}
Label
{
id: loadMoreLabel
text: catalog.i18nc("@button", "Load More")
font: UM.Theme.getFont("medium_bold")
color: UM.Theme.getColor("primary")
}
}
}
}
}