mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 18:25:54 +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
|
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…
x
Reference in New Issue
Block a user