Collapse the setting section when the switch for the section is disabled.

Add collapse animation for setting items and setting section.

Swap out ColumnLayout for Layout. Animating the Layouts does not seem to be possible.

I had to put spacer back into the Column but it is the lesser of two evils.

CURA-9793
This commit is contained in:
Joey de l'Arago 2022-12-01 14:03:11 +01:00
parent 574b1000f6
commit 62bae7df19
5 changed files with 118 additions and 27 deletions

View file

@ -37,10 +37,14 @@ RecommendedSettingSection
contents: [
RecommendedSettingItem
{
Layout.preferredHeight: childrenRect.height
isCompressed: enableAdhesionRow.isCompressed
settingName: catalog.i18nc("@action:label", "Print with")
tooltipText: catalog.i18nc("adhesion_extruder_nr description", "The extruder train to use for printing the skirt/brim/raft. This is used in multi-extrusion.")
settingControl: Cura.SingleSettingExtruderSelectorBar { extruderSettingName: "adhesion_extruder_nr" }
settingControl: Cura.SingleSettingExtruderSelectorBar
{
extruderSettingName: "adhesion_extruder_nr"
}
}
]
}