mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 09:35:56 +08:00
Ensure that printer icon has disabled color if the printer is disabled
CL-896
This commit is contained in:
parent
5be65688a0
commit
23cd46824f
@ -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…
x
Reference in New Issue
Block a user