From d57f166b082ef7fc1f72decfed29568ab90a49f9 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 24 Aug 2018 16:26:51 +0200 Subject: [PATCH] Added opacity to preview if print is done / paused CL-896 --- .../UM3NetworkPrinting/ClusterControlItem.qml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/plugins/UM3NetworkPrinting/ClusterControlItem.qml b/plugins/UM3NetworkPrinting/ClusterControlItem.qml index 753197cdca..ca1ae07585 100644 --- a/plugins/UM3NetworkPrinting/ClusterControlItem.qml +++ b/plugins/UM3NetworkPrinting/ClusterControlItem.qml @@ -439,6 +439,23 @@ Component anchors.horizontalCenter: parent.horizontalCenter width: parent.width / 2 height: width + opacity: + { + if(modelData.activePrintJob == null) + { + return 1.0 + } + + switch(modelData.activePrintJob.state) + { + case "wait_cleanup": + case "wait_user_action": + case "paused": + return 0.5 + default: + return 1.0 + } + } } Rectangle