mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 10:25:58 +08:00
Use Item and anchors to set material row layout
CURA-3810
This commit is contained in:
parent
3a3d9afc24
commit
68bd5a6e37
@ -159,7 +159,7 @@ Column
|
|||||||
visible: !extruderSelectionRow.visible
|
visible: !extruderSelectionRow.visible
|
||||||
}
|
}
|
||||||
|
|
||||||
Row
|
Item
|
||||||
{
|
{
|
||||||
id: variantRow
|
id: variantRow
|
||||||
|
|
||||||
@ -196,23 +196,22 @@ Column
|
|||||||
}
|
}
|
||||||
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
anchors.left: variantRow.left
|
||||||
width: parent.width * 0.30
|
width: parent.width * 0.30
|
||||||
font: UM.Theme.getFont("default");
|
font: UM.Theme.getFont("default");
|
||||||
color: UM.Theme.getColor("text");
|
color: UM.Theme.getColor("text");
|
||||||
}
|
}
|
||||||
|
|
||||||
Text
|
|
||||||
{
|
|
||||||
width: parent.width * 0.05
|
|
||||||
}
|
|
||||||
|
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
id: materialInfoButton
|
id: materialInfoButton
|
||||||
height: parent.height * 0.70
|
height: parent.height * 0.70
|
||||||
width: height
|
width: height
|
||||||
anchors.margins: UM.Theme.getSize("default_margin").width
|
|
||||||
|
anchors.left: variantLabel.right
|
||||||
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width * 2
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
visible: extrudersList.visible
|
visible: extrudersList.visible
|
||||||
|
|
||||||
text: "i"
|
text: "i"
|
||||||
@ -244,21 +243,10 @@ Column
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Text // to take the space of the material info button when the active machine doesn't have multiple extruders
|
|
||||||
{
|
|
||||||
height: parent.height * 0.70
|
|
||||||
width: height
|
|
||||||
visible: !extrudersList.visible
|
|
||||||
}
|
|
||||||
|
|
||||||
Text
|
|
||||||
{
|
|
||||||
width: parent.width * 0.10 - materialInfoButton.width - UM.Theme.getSize("default_margin").width
|
|
||||||
}
|
|
||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
anchors.right: parent.right
|
||||||
|
|
||||||
width: parent.width * 0.50 + UM.Theme.getSize("default_margin").width
|
width: parent.width * 0.50 + UM.Theme.getSize("default_margin").width
|
||||||
height: UM.Theme.getSize("setting_control").height
|
height: UM.Theme.getSize("setting_control").height
|
||||||
|
Loading…
x
Reference in New Issue
Block a user