mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
Add padding around the printer icons
CL-893
This commit is contained in:
parent
2e5b11af9d
commit
b7d7091de8
1 changed files with 22 additions and 14 deletions
|
@ -135,30 +135,38 @@ Component
|
||||||
onClicked: base.collapsed = !base.collapsed
|
onClicked: base.collapsed = !base.collapsed
|
||||||
}
|
}
|
||||||
|
|
||||||
UM.RecolorImage
|
Item
|
||||||
{
|
{
|
||||||
id: machineIcon
|
id: machineIcon
|
||||||
|
// Yeah, this is hardcoded now, but I can't think of a good way to fix this.
|
||||||
|
// The UI is going to get another update soon, so it's probably not worth the effort...
|
||||||
|
width: 58
|
||||||
|
height: 58
|
||||||
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
|
||||||
source:
|
|
||||||
|
UM.RecolorImage
|
||||||
{
|
{
|
||||||
switch(modelData.type)
|
anchors.centerIn: parent
|
||||||
|
source:
|
||||||
{
|
{
|
||||||
case "Ultimaker 3":
|
switch(modelData.type)
|
||||||
return "UM3-icon.svg"
|
{
|
||||||
case "Ultimaker 3 Extended":
|
case "Ultimaker 3":
|
||||||
return "UM3x-icon.svg"
|
return "UM3-icon.svg"
|
||||||
case "Ultimaker S5":
|
case "Ultimaker 3 Extended":
|
||||||
return "UMs5-icon.svg"
|
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")
|
||||||
}
|
}
|
||||||
width: sourceSize.width
|
|
||||||
height: sourceSize.height
|
|
||||||
|
|
||||||
color: modelData.activePrintJob != undefined ? UM.Theme.getColor("primary") : UM.Theme.getColor("setting_control_disabled")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue