From 16e4ee58a9af8d5dfe7a074e8764d524cdb4c241 Mon Sep 17 00:00:00 2001 From: "j.delarago" Date: Wed, 19 Jan 2022 18:04:29 +0100 Subject: [PATCH] Update Machine Settings Menu checkboxes to new style. Change height of setting row to be set by TooltipArea instead of Checkbox and center Checkbox within TooltipArea --- resources/qml/MachineSettings/SimpleCheckBox.qml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/resources/qml/MachineSettings/SimpleCheckBox.qml b/resources/qml/MachineSettings/SimpleCheckBox.qml index 821c68745a..571518a9bd 100644 --- a/resources/qml/MachineSettings/SimpleCheckBox.qml +++ b/resources/qml/MachineSettings/SimpleCheckBox.qml @@ -20,7 +20,7 @@ UM.TooltipArea property int controlHeight: UM.Theme.getSize("setting_control").height - height: childrenRect.height + height: controlHeight width: childrenRect.width text: tooltip @@ -60,10 +60,13 @@ UM.TooltipArea Cura.CheckBox { id: checkBox - anchors.left: fieldLabel.right - anchors.leftMargin: UM.Theme.getSize("default_margin").width + anchors { + left: fieldLabel.right + leftMargin: UM.Theme.getSize("default_margin").width + verticalCenter: parent.verticalCenter + } checked: String(propertyProvider.properties.value).toLowerCase() != 'false' - height: simpleCheckBox.controlHeight + height: UM.Theme.getSize("checkbox").height text: "" onClicked: {