mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 17:48:59 +08:00
Icons are now displayed in the printerTile
CL-896
This commit is contained in:
parent
aee90081e5
commit
d7e907f1a5
@ -112,14 +112,27 @@ Component
|
|||||||
onClicked: base.collapsed = !base.collapsed
|
onClicked: base.collapsed = !base.collapsed
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle
|
UM.RecolorImage
|
||||||
{
|
{
|
||||||
id: machineIcon
|
id: machineIcon
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
width: 50
|
source:
|
||||||
height: 50
|
{
|
||||||
|
switch(modelData.type)
|
||||||
|
{
|
||||||
|
case "Ultimaker 3":
|
||||||
|
return "UM3-icon.svg"
|
||||||
|
case "Ultimaker 3 Extended":
|
||||||
|
return "UM3x-icon.svg"
|
||||||
|
case "Ultimaker S5":
|
||||||
|
return "UMs5-icon.svg"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
width: sourceSize.width
|
||||||
|
height: sourceSize.height
|
||||||
|
|
||||||
color: modelData.activePrintJob != undefined ? UM.Theme.getColor("primary") : UM.Theme.getColor("setting_control_disabled")
|
color: modelData.activePrintJob != undefined ? UM.Theme.getColor("primary") : UM.Theme.getColor("setting_control_disabled")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user