mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Anchor the i-button to materialVariantContainer
CURA-3810
This commit is contained in:
parent
a934cc4182
commit
4e03eeca8e
1 changed files with 13 additions and 9 deletions
|
@ -162,7 +162,7 @@ Column
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
id: variantRow
|
id: variantRow
|
||||||
|
|
||||||
height: UM.Theme.getSize("sidebar_setup").height
|
height: UM.Theme.getSize("sidebar_setup").height
|
||||||
visible: (Cura.MachineManager.hasVariants || Cura.MachineManager.hasMaterials) && !sidebar.monitoringPrint && !sidebar.hideSettings
|
visible: (Cura.MachineManager.hasVariants || Cura.MachineManager.hasMaterials) && !sidebar.monitoringPrint && !sidebar.hideSettings
|
||||||
|
|
||||||
|
@ -177,6 +177,14 @@ Column
|
||||||
Text
|
Text
|
||||||
{
|
{
|
||||||
id: variantLabel
|
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:
|
text:
|
||||||
{
|
{
|
||||||
var label;
|
var label;
|
||||||
|
@ -194,12 +202,6 @@ Column
|
||||||
}
|
}
|
||||||
return "%1:".arg(label);
|
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
|
Button
|
||||||
|
@ -208,8 +210,8 @@ Column
|
||||||
height: parent.height * 0.60
|
height: parent.height * 0.60
|
||||||
width: height
|
width: height
|
||||||
|
|
||||||
anchors.left: variantLabel.right
|
anchors.right: materialVariantContainer.left
|
||||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
anchors.rightMargin: UM.Theme.getSize("default_margin").width
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
visible: extrudersList.visible
|
visible: extrudersList.visible
|
||||||
|
@ -245,6 +247,8 @@ Column
|
||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
|
id: materialVariantContainer
|
||||||
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue