From d7e907f1a56c1fdf89e8316cdad51b5ef65889b0 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 24 Aug 2018 15:13:29 +0200 Subject: [PATCH] Icons are now displayed in the printerTile CL-896 --- .../UM3NetworkPrinting/ClusterControlItem.qml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/plugins/UM3NetworkPrinting/ClusterControlItem.qml b/plugins/UM3NetworkPrinting/ClusterControlItem.qml index 7100fb0fd7..34b097b006 100644 --- a/plugins/UM3NetworkPrinting/ClusterControlItem.qml +++ b/plugins/UM3NetworkPrinting/ClusterControlItem.qml @@ -112,14 +112,27 @@ Component onClicked: base.collapsed = !base.collapsed } - Rectangle + UM.RecolorImage { id: machineIcon anchors.top: parent.top anchors.leftMargin: UM.Theme.getSize("default_margin").width anchors.left: parent.left - width: 50 - height: 50 + source: + { + switch(modelData.type) + { + case "Ultimaker 3": + return "UM3-icon.svg" + case "Ultimaker 3 Extended": + return "UM3x-icon.svg" + case "Ultimaker S5": + return "UMs5-icon.svg" + } + } + width: sourceSize.width + height: sourceSize.height + color: modelData.activePrintJob != undefined ? UM.Theme.getColor("primary") : UM.Theme.getColor("setting_control_disabled") }