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
This commit is contained in:
j.delarago 2022-01-19 18:04:29 +01:00
parent c54c375a7c
commit 16e4ee58a9

View file

@ -20,7 +20,7 @@ UM.TooltipArea
property int controlHeight: UM.Theme.getSize("setting_control").height property int controlHeight: UM.Theme.getSize("setting_control").height
height: childrenRect.height height: controlHeight
width: childrenRect.width width: childrenRect.width
text: tooltip text: tooltip
@ -60,10 +60,13 @@ UM.TooltipArea
Cura.CheckBox Cura.CheckBox
{ {
id: checkBox id: checkBox
anchors.left: fieldLabel.right anchors {
anchors.leftMargin: UM.Theme.getSize("default_margin").width left: fieldLabel.right
leftMargin: UM.Theme.getSize("default_margin").width
verticalCenter: parent.verticalCenter
}
checked: String(propertyProvider.properties.value).toLowerCase() != 'false' checked: String(propertyProvider.properties.value).toLowerCase() != 'false'
height: simpleCheckBox.controlHeight height: UM.Theme.getSize("checkbox").height
text: "" text: ""
onClicked: onClicked:
{ {