mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
CURA-5035 Added material authors + icons
This commit is contained in:
parent
b763b2a5a0
commit
7a0fe74989
6 changed files with 68 additions and 22 deletions
|
@ -83,24 +83,25 @@ Item
|
|||
}
|
||||
onExited:
|
||||
{
|
||||
thumbnail.border.color = UM.Theme.getColor("text")
|
||||
thumbnail.border.color = UM.Theme.getColor("lining")
|
||||
highlight.opacity = 0.0
|
||||
}
|
||||
onClicked:
|
||||
{
|
||||
console.log(model.icon_url)
|
||||
if ( toolbox.viewCategory == "material" )
|
||||
{
|
||||
toolbox.viewSelection = model.name
|
||||
toolbox.viewPage = "author"
|
||||
toolbox.filterModelByProp("authors", "name", model.name)
|
||||
toolbox.filterModelByProp("packages", "author_name", model.name)
|
||||
toolbox.filterModelByProp("authors", "name", model.name)
|
||||
}
|
||||
else
|
||||
{
|
||||
toolbox.viewSelection = model.id
|
||||
toolbox.viewPage = "detail"
|
||||
toolbox.filterModelByProp("authors", "name", model.author_name)
|
||||
toolbox.filterModelByProp("packages", "id", model.id)
|
||||
toolbox.filterModelByProp("authors", "name", model.author_name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue