mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
Move what is already there of 'package card' to it's own file.
part of CURA-8561
This commit is contained in:
parent
51434eda1b
commit
e93ecd3699
2 changed files with 30 additions and 17 deletions
|
@ -46,24 +46,9 @@ ScrollView
|
|||
}
|
||||
}
|
||||
|
||||
delegate: Rectangle
|
||||
delegate: PackageCard
|
||||
{
|
||||
width: packagesListview.width
|
||||
height: UM.Theme.getSize("card").height
|
||||
|
||||
color: UM.Theme.getColor("main_background")
|
||||
radius: UM.Theme.getSize("default_radius").width
|
||||
|
||||
Label
|
||||
{
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: Math.round((parent.height - height) / 2)
|
||||
|
||||
text: model.package.displayName
|
||||
font: UM.Theme.getFont("medium_bold")
|
||||
color: UM.Theme.getColor("text")
|
||||
}
|
||||
packageData: model.package
|
||||
}
|
||||
|
||||
//Wrapper item to add spacing between content and footer.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue