From 01c4a0f72d59b2ad28922bfd09de875ee9d48648 Mon Sep 17 00:00:00 2001 From: Konstantinos Karmas Date: Wed, 28 Jul 2021 16:55:36 +0200 Subject: [PATCH] Change warning icon background to the CircleSolid.svg CURA-8439 --- .../ConfigurationListView.qml | 29 ++++++++++++++----- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/resources/qml/Menus/ConfigurationMenu/ConfigurationListView.qml b/resources/qml/Menus/ConfigurationMenu/ConfigurationListView.qml index afedafa9c2..de74eb469a 100644 --- a/resources/qml/Menus/ConfigurationMenu/ConfigurationListView.qml +++ b/resources/qml/Menus/ConfigurationMenu/ConfigurationListView.qml @@ -28,20 +28,32 @@ Item { width: parent.width visible: configurationList.model.length == 0 - height: label.height + UM.Theme.getSize("wide_margin").height + height: icon.height anchors.top: parent.top anchors.topMargin: UM.Theme.getSize("default_margin").height - - Rectangle + Item { id: icon - color: UM.Theme.getColor("warning") - width: UM.Theme.getSize("section_icon").width + width: visible ? UM.Theme.getSize("section_icon").width : 0 height: width - radius: width / 2 + anchors.verticalCenter: parent.verticalCenter UM.RecolorImage { - anchors.fill:parent + id: warningIconBackground + height: parent.height + width: parent.width + sourceSize.width: width + sourceSize.height: height + source: UM.Theme.getIcon("CircleSolid", "low") + color: UM.Theme.getColor("warning") + } + UM.RecolorImage + { + id: warningIcon + height: parent.height + width: parent.width + sourceSize.width: width + sourceSize.height: height source: UM.Theme.getIcon("Warning", "low") color: UM.Theme.getColor("message_warning_icon") } @@ -51,8 +63,9 @@ Item id: label anchors.left: icon.right anchors.right: parent.right + anchors.verticalCenter: parent.verticalCenter anchors.leftMargin: UM.Theme.getSize("default_margin").width - // There are two cases that we want to diferenciate, one is when Cura is loading the configurations and the + // There are two cases that we want to differenciate, one is when Cura is loading the configurations and the // other when the connection was lost text: Cura.MachineManager.printerConnected ? catalog.i18nc("@label", "Loading available configurations from the printer...") :