mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 14:04:03 -06:00
Add identation for the materials preferences page
CURA-8979
This commit is contained in:
parent
5136838f56
commit
93405bdb93
4 changed files with 18 additions and 11 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue