mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 21:13:58 -06:00
Implimented showcase
This commit is contained in:
parent
817b724994
commit
7359554641
7 changed files with 133 additions and 38 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue