Add identation for the materials preferences page

CURA-8979
This commit is contained in:
Jaime van Kessel 2022-03-15 10:16:49 +01:00
parent 5136838f56
commit 93405bdb93
4 changed files with 18 additions and 11 deletions

View file

@ -18,7 +18,6 @@ Column
property var elementsModel // This can be a MaterialTypesModel or GenericMaterialsModel or FavoriteMaterialsModel
property bool hasMaterialTypes: true // It indicates whether it has material types or not
property bool expanded: materialList.expandedBrands.indexOf(sectionName) !== -1
width: parent.width
Cura.CategoryButton
@ -68,6 +67,7 @@ Column
MaterialsTypeSection
{
materialType: element
indented: true
}
}

View file

@ -47,7 +47,7 @@ Rectangle
radius: width / 2
anchors.verticalCenter: materialSlot.verticalCenter
anchors.left: materialSlot.left
anchors.leftMargin: UM.Theme.getSize("default_margin").width
anchors.leftMargin: 2 * UM.Theme.getSize("default_margin").width
}
UM.Label
{

View file

@ -16,11 +16,12 @@ Column
property string materialName: materialType !== null ? materialType.name : ""
property bool expanded: materialList.expandedTypes.indexOf(`${materialBrand}_${materialName}`) !== -1
property var colorsModel: materialType !== null ? materialType.colors : null
property alias indented: categoryButton.indented
width: parent.width
Cura.CategoryButton
{
id: categoryButton
width: parent.width
height: UM.Theme.getSize("favorites_row").height
labelText: materialName