Fixed alignment of printCoreConfiguration

CL-896
This commit is contained in:
Jaime van Kessel 2018-08-30 10:32:37 +02:00
parent 14f253017b
commit fd1b0a80e7

View File

@ -18,6 +18,8 @@ Item
id: extruderCircle
width: 30
height: 30
anchors.verticalCenter: printAndMaterialLabel.verticalCenter
opacity:
{
if(printCoreConfiguration == undefined || printCoreConfiguration.activeMaterial == undefined || printCoreConfiguration.hotendID == undefined)
@ -31,7 +33,7 @@ Item
{
anchors.fill: parent
radius: Math.round(width / 2)
border.width: 1
border.width: 2
border.color: "black"
}
@ -43,6 +45,17 @@ Item
}
}
Item
{
id: printAndMaterialLabel
anchors
{
right: parent.right
left: extruderCircle.right
margins: UM.Theme.getSize("default_margin").width
}
height: childrenRect.height
Label
{
id: materialLabel
@ -56,13 +69,6 @@ Item
}
font: UM.Theme.getFont("default_bold")
elide: Text.ElideRight
anchors
{
right: parent.right
left: extruderCircle.right
margins: UM.Theme.getSize("default_margin").width
}
}
Label
@ -81,14 +87,6 @@ Item
opacity: 0.6
font: UM.Theme.getFont("default")
anchors
{
top: materialLabel.bottom
right: parent.right
left: extruderCircle.right
leftMargin: UM.Theme.getSize("default_margin").width
rightMargin: UM.Theme.getSize("default_margin").width
}
}
}