Implimented showcase

This commit is contained in:
Ian Paschal 2018-04-10 11:05:34 +02:00
parent 817b724994
commit 7359554641
7 changed files with 133 additions and 38 deletions

View file

@ -15,18 +15,26 @@ Item
Rectangle
{
color: "white"
width: UM.Theme.getSize("base_unit").width * 8
height: UM.Theme.getSize("base_unit").width * 8
width: UM.Theme.getSize("toolbox_thumbnail_medium").width
height: UM.Theme.getSize("toolbox_thumbnail_medium").height
border.width: 1
border.color: UM.Theme.getColor("text_medium")
anchors
{
top: parent.top
horizontalCenter: parent.horizontalCenter
}
Image {
anchors.centerIn: parent
width: UM.Theme.getSize("toolbox_thumbnail_medium").width - 26
height: UM.Theme.getSize("toolbox_thumbnail_medium").height - 26
fillMode: Image.PreserveAspectFit
source: model.icon_url || "../images/logobot.svg"
}
}
Label
{
text: "Solidworks Integration"
text: model.name
anchors
{
bottom: parent.bottom
@ -39,4 +47,22 @@ Item
color: UM.Theme.getColor("text")
font: UM.Theme.getFont("medium_bold")
}
MouseArea
{
anchors.fill: parent
onClicked: {
if ( manager.viewCategory == "material" )
{
manager.viewSelection = model.name
manager.viewPage = "author"
manager.filterPackages("author_name", model.name)
}
else
{
manager.viewSelection = model.id
manager.viewPage = "detail"
manager.filterPackages("id", model.id)
}
}
}
}