Fix spacing vertical between Recommended sections and setting items.

CURA-9793
This commit is contained in:
Joey de l'Arago 2022-11-30 15:09:05 +01:00
parent 680a86c896
commit dbf2ae4f60
5 changed files with 28 additions and 22 deletions

View file

@ -76,28 +76,31 @@ Item
Layout.fillWidth: true
color: UM.Theme.getColor("lining")
}
UM.Label
ColumnLayout
{
text: catalog.i18nc("@label", "Print settings")
font: UM.Theme.getFont("medium")
}
spacing: UM.Theme.getSize("thin_margin").height
UM.Label
{
text: catalog.i18nc("@label", "Reccomended print settings")
font: UM.Theme.getFont("medium")
}
RecommendedStrengthSelector
{
width: parent.width
Layout.fillWidth: true
}
RecommendedStrengthSelector
{
width: parent.width
Layout.fillWidth: true
}
RecommendedSupportSelector
{
width: parent.width
Layout.fillWidth: true
}
RecommendedSupportSelector
{
width: parent.width
Layout.fillWidth: true
}
RecommendedAdhesionSelector {
width: parent.width
Layout.fillWidth: true
RecommendedAdhesionSelector {
width: parent.width
Layout.fillWidth: true
}
}
}

View file

@ -77,9 +77,13 @@ Item
{
id: settingColumn
width: parent.width
spacing: 0
spacing: UM.Theme.getSize("thin_margin").height
anchors.left: parent.left
anchors.right: parent.right
anchors.top: sectionHeader.bottom
anchors.topMargin: UM.Theme.getSize("narrow_margin").height
Layout.preferredHeight: UM.Theme.getSize("recommended_section_setting_item").height
}
}

View file

@ -54,7 +54,6 @@ RecommendedSettingSection
settingControl: Cura.SingleSettingComboBox
{
width: parent.width
height: UM.Theme.getSize("combobox").height
settingName: "infill_pattern"
}
}

View file

@ -57,7 +57,6 @@ RecommendedSettingSection
settingControl: Cura.SingleSettingComboBox
{
width: parent.width
height: UM.Theme.getSize("combobox").height
settingName: "support_structure"
}
},
@ -74,7 +73,6 @@ RecommendedSettingSection
settingControl: Cura.SingleSettingComboBox
{
width: parent.width
height: UM.Theme.getSize("combobox").height
settingName: "support_type"
}
}