mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-19 04:37:51 -06:00
Ensure that printer icon has disabled color if the printer is disabled
CL-896
This commit is contained in:
parent
5be65688a0
commit
23cd46824f
1 changed files with 14 additions and 1 deletions
|
@ -164,7 +164,20 @@ Component
|
||||||
width: sourceSize.width
|
width: sourceSize.width
|
||||||
height: sourceSize.height
|
height: sourceSize.height
|
||||||
|
|
||||||
color: modelData.activePrintJob != undefined ? UM.Theme.getColor("primary") : UM.Theme.getColor("setting_control_disabled")
|
color:
|
||||||
|
{
|
||||||
|
if(modelData.state == "disabled")
|
||||||
|
{
|
||||||
|
return UM.Theme.getColor("setting_control_disabled")
|
||||||
|
}
|
||||||
|
|
||||||
|
if(modelData.activePrintJob != undefined)
|
||||||
|
{
|
||||||
|
return UM.Theme.getColor("primary")
|
||||||
|
}
|
||||||
|
|
||||||
|
return UM.Theme.getColor("setting_control_disabled")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Item
|
Item
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue