From c3f26d4daa4c061e37b3d72316f4ed6903c11faf Mon Sep 17 00:00:00 2001 From: Konstantinos Karmas Date: Thu, 5 Aug 2021 09:52:03 +0200 Subject: [PATCH] Move layer.enabled inside the child item in ExtruderIcon When it was in the outer item, it was causing the label to disappear when then extruder icon was getting disabled. Moving it inside the child item which has the opacity change seems to fix that issue. CURA-8417 --- resources/qml/ExtruderIcon.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/qml/ExtruderIcon.qml b/resources/qml/ExtruderIcon.qml index ed392d13d7..8d5852823d 100644 --- a/resources/qml/ExtruderIcon.qml +++ b/resources/qml/ExtruderIcon.qml @@ -18,11 +18,12 @@ Item property bool extruderEnabled: true property alias iconSize: mainIcon.sourceSize property string iconVariant: "medium" - layer.enabled: true // Prevent weird opacity effects. + Item { opacity: extruderEnabled ? 1 : UM.Theme.getColor("extruder_disabled").a anchors.fill: parent + layer.enabled: true // Prevent weird opacity effects. UM.RecolorImage {