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,10 +76,12 @@ Item
Layout.fillWidth: true Layout.fillWidth: true
color: UM.Theme.getColor("lining") color: UM.Theme.getColor("lining")
} }
ColumnLayout
{
spacing: UM.Theme.getSize("thin_margin").height
UM.Label UM.Label
{ {
text: catalog.i18nc("@label", "Print settings") text: catalog.i18nc("@label", "Reccomended print settings")
font: UM.Theme.getFont("medium") font: UM.Theme.getFont("medium")
} }
@ -100,6 +102,7 @@ Item
Layout.fillWidth: true Layout.fillWidth: true
} }
} }
}
UM.SettingPropertyProvider UM.SettingPropertyProvider
{ {

View file

@ -77,9 +77,13 @@ Item
{ {
id: settingColumn id: settingColumn
width: parent.width width: parent.width
spacing: 0 spacing: UM.Theme.getSize("thin_margin").height
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
anchors.top: sectionHeader.bottom 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 settingControl: Cura.SingleSettingComboBox
{ {
width: parent.width width: parent.width
height: UM.Theme.getSize("combobox").height
settingName: "infill_pattern" settingName: "infill_pattern"
} }
} }

View file

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

View file

@ -653,6 +653,8 @@
"recommended_button_icon": [1.7, 1.7], "recommended_button_icon": [1.7, 1.7],
"recommended_section_setting_item": [14.0, 2.0],
"reset_profile_icon": [1, 1] "reset_profile_icon": [1, 1]
} }
} }