Move what is already there of 'package card' to it's own file.

part of CURA-8561
This commit is contained in:
Remco Burema 2021-11-05 09:26:27 +01:00
parent 51434eda1b
commit e93ecd3699
No known key found for this signature in database
GPG key ID: 215C49431D43F98C
2 changed files with 30 additions and 17 deletions

View file

@ -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.