diff --git a/resources/qml/Topbar.qml b/resources/qml/Topbar.qml index a6da453997..974e7af24b 100644 --- a/resources/qml/Topbar.qml +++ b/resources/qml/Topbar.qml @@ -59,38 +59,6 @@ Rectangle onClicked: base.startMonitoringPrint() text: catalog.i18nc("@title:tab", "Print") iconSource: UM.Theme.getIcon("tab_monitor") - property color overlayColor: - { - if(!printerAcceptsCommands) - { - return UM.Theme.getColor("status_unknown"); - } - - if(Cura.MachineManager.printerOutputDevices[0].printerState == "maintenance") - { - return UM.Theme.getColor("status_busy"); - } - switch(Cura.MachineManager.printerOutputDevices[0].jobState) - { - case "printing": - case "pre_print": - case "wait_cleanup": - case "pausing": - case "resuming": - return UM.Theme.getColor("status_busy"); - case "ready": - case "": - return UM.Theme.getColor("status_ready"); - case "paused": - return UM.Theme.getColor("status_paused"); - case "error": - return UM.Theme.getColor("status_stopped"); - case "offline": - return UM.Theme.getColor("status_offline"); - default: - return UM.Theme.getColor("text_emphasis"); - } - } property string overlayIconSource: { if(!printerConnected) diff --git a/resources/themes/cura/styles.qml b/resources/themes/cura/styles.qml index b98a90a136..57837e185b 100755 --- a/resources/themes/cura/styles.qml +++ b/resources/themes/cura/styles.qml @@ -148,10 +148,9 @@ QtObject { sourceSize: Theme.getSize("button_icon") } - UM.RecolorImage + Image { visible: control.overlayIconSource != "" - color: control.overlayColor opacity: !control.enabled ? 0.2 : 1.0 source: control.overlayIconSource width: Theme.getSize("button_icon").width