mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-01 16:24:41 +08:00
Fix switch alignment
CURA-9793
This commit is contained in:
parent
c356b9d46f
commit
1224f076c3
@ -48,16 +48,6 @@ Item
|
|||||||
font: UM.Theme.getFont("medium_bold")
|
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
|
MouseArea
|
||||||
{
|
{
|
||||||
id: tooltipMouseArea
|
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
|
ColumnLayout
|
||||||
{
|
{
|
||||||
id: settingColumn
|
id: settingColumn
|
||||||
|
Loading…
x
Reference in New Issue
Block a user