Просмотр исходного кода

Fix warning about missing color in theme

CURA-1036
fieldOfView 8 лет назад
Родитель
Сommit
b7906c9ce7
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      resources/qml/MonitorButton.qml

+ 4 - 2
resources/qml/MonitorButton.qml

@@ -28,8 +28,10 @@ Rectangle
             return UM.Theme.getColor("status_ready")
         else if(Cura.MachineManager.printerOutputDevices[0].jobState == "paused")
             return UM.Theme.getColor("status_paused")
-        else if (Cura.MachineManager.printerOutputDevices[0].jobState != "error")
-            return UM.Theme.getColor("status_error")
+        else if (Cura.MachineManager.printerOutputDevices[0].jobState == "error")
+            return UM.Theme.getColor("status_stopped")
+        else
+            return UM.Theme.getColor("text")
     }
 
     property bool activity: Printer.getPlatformActivity;