mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 22:16:01 +08:00
Anchor the i-button to materialVariantContainer
CURA-3810
This commit is contained in:
parent
7676975fcb
commit
4fe4c759bd
@ -162,7 +162,7 @@ Column
|
||||
Item
|
||||
{
|
||||
id: variantRow
|
||||
|
||||
|
||||
height: UM.Theme.getSize("sidebar_setup").height
|
||||
visible: (Cura.MachineManager.hasVariants || Cura.MachineManager.hasMaterials) && !sidebar.monitoringPrint && !sidebar.hideSettings
|
||||
|
||||
@ -177,6 +177,14 @@ Column
|
||||
Text
|
||||
{
|
||||
id: variantLabel
|
||||
width: parent.width * 0.30
|
||||
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.left: variantRow.left
|
||||
|
||||
font: UM.Theme.getFont("default");
|
||||
color: UM.Theme.getColor("text");
|
||||
|
||||
text:
|
||||
{
|
||||
var label;
|
||||
@ -194,12 +202,6 @@ Column
|
||||
}
|
||||
return "%1:".arg(label);
|
||||
}
|
||||
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.left: variantRow.left
|
||||
width: parent.width * 0.30
|
||||
font: UM.Theme.getFont("default");
|
||||
color: UM.Theme.getColor("text");
|
||||
}
|
||||
|
||||
Button
|
||||
@ -208,8 +210,8 @@ Column
|
||||
height: parent.height * 0.60
|
||||
width: height
|
||||
|
||||
anchors.left: variantLabel.right
|
||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||
anchors.right: materialVariantContainer.left
|
||||
anchors.rightMargin: UM.Theme.getSize("default_margin").width
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
visible: extrudersList.visible
|
||||
@ -245,6 +247,8 @@ Column
|
||||
|
||||
Item
|
||||
{
|
||||
id: materialVariantContainer
|
||||
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.right: parent.right
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user