Fix switch alignment

CURA-9793
This commit is contained in:
Joey de l'Arago 2022-11-29 17:20:34 +01:00
parent c356b9d46f
commit 1224f076c3

View File

@ -48,16 +48,6 @@ Item
font: UM.Theme.getFont("medium_bold")
}
UM.Switch
{
id: enableSectionSwitch
anchors.left: sectionTitle.right
anchors.verticalCenter: parent.verticalCenter
visible: false
onClicked: onEnableSectionChanged(enableSectionSwitch.checked)
}
MouseArea
{
id: tooltipMouseArea
@ -71,6 +61,18 @@ Item
}
UM.Switch
{
id: enableSectionSwitch
anchors.left: parent.left
// These numbers come from the IconWithText in RecommendedSettingSection.
anchors.leftMargin: leftColumnWidth + UM.Theme.getSize("medium_button_icon").width + UM.Theme.getSize("thick_margin").width - (2 * UM.Theme.getSize("thick_lining").width)
anchors.verticalCenter: sectionHeader.verticalCenter
visible: false
onClicked: onEnableSectionChanged(enableSectionSwitch.checked)
}
ColumnLayout
{
id: settingColumn