mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 03:49:00 +08:00
Fix warning about missing color in theme
CURA-1036
This commit is contained in:
parent
087ebc0768
commit
b7906c9ce7
@ -28,8 +28,10 @@ Rectangle
|
|||||||
return UM.Theme.getColor("status_ready")
|
return UM.Theme.getColor("status_ready")
|
||||||
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "paused")
|
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "paused")
|
||||||
return UM.Theme.getColor("status_paused")
|
return UM.Theme.getColor("status_paused")
|
||||||
else if (Cura.MachineManager.printerOutputDevices[0].jobState != "error")
|
else if (Cura.MachineManager.printerOutputDevices[0].jobState == "error")
|
||||||
return UM.Theme.getColor("status_error")
|
return UM.Theme.getColor("status_stopped")
|
||||||
|
else
|
||||||
|
return UM.Theme.getColor("text")
|
||||||
}
|
}
|
||||||
|
|
||||||
property bool activity: Printer.getPlatformActivity;
|
property bool activity: Printer.getPlatformActivity;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user