From d1f21ec7c48e6c5ca19f3bad9909e1e9d3573b2b Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Tue, 16 Nov 2021 15:34:10 +0100 Subject: [PATCH] Adjust size and position of extruder warning "badges" --- .../Menus/ConfigurationMenu/ConfigurationMenu.qml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml b/resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml index a4fcc4265d..cd396f8169 100644 --- a/resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml +++ b/resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml @@ -74,11 +74,16 @@ Cura.ExpandablePopup visible: valueWarning || valueError - anchors.left: extruderIcon.right - anchors.leftMargin: visible ? UM.Theme.getSize("thin_margin").width : 0 - anchors.verticalCenter: parent.verticalCenter + anchors + { + top: extruderIcon.top + topMargin: - Math.round(height * 1 / 6) + left: extruderIcon.left + leftMargin: extruderIcon.width - Math.round(width * 5 / 6) + } - width: visible ? UM.Theme.getSize("section_icon").width : 0 + // width is set to draw the same size as the MachineSelector connectionStatusImage, which is drawn as an image instead of a statusicon + width: UM.Theme.getSize("icon_indicator").width + 2 * UM.Theme.getSize("default_lining").width height: width status: @@ -102,7 +107,7 @@ Cura.ExpandablePopup visible: width > 0 anchors { - left: configurationWarning.visible ? configurationWarning.right : extruderIcon.right + left: extruderIcon.right leftMargin: UM.Theme.getSize("default_margin").width verticalCenter: parent.verticalCenter right: parent.right