mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-21 20:19:32 +08:00
Fixed alignment of printCoreConfiguration
CL-896
This commit is contained in:
parent
14f253017b
commit
fd1b0a80e7
@ -18,6 +18,8 @@ Item
|
|||||||
id: extruderCircle
|
id: extruderCircle
|
||||||
width: 30
|
width: 30
|
||||||
height: 30
|
height: 30
|
||||||
|
|
||||||
|
anchors.verticalCenter: printAndMaterialLabel.verticalCenter
|
||||||
opacity:
|
opacity:
|
||||||
{
|
{
|
||||||
if(printCoreConfiguration == undefined || printCoreConfiguration.activeMaterial == undefined || printCoreConfiguration.hotendID == undefined)
|
if(printCoreConfiguration == undefined || printCoreConfiguration.activeMaterial == undefined || printCoreConfiguration.hotendID == undefined)
|
||||||
@ -31,7 +33,7 @@ Item
|
|||||||
{
|
{
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: Math.round(width / 2)
|
radius: Math.round(width / 2)
|
||||||
border.width: 1
|
border.width: 2
|
||||||
border.color: "black"
|
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
|
Label
|
||||||
{
|
{
|
||||||
id: materialLabel
|
id: materialLabel
|
||||||
@ -56,13 +69,6 @@ Item
|
|||||||
}
|
}
|
||||||
font: UM.Theme.getFont("default_bold")
|
font: UM.Theme.getFont("default_bold")
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
||||||
anchors
|
|
||||||
{
|
|
||||||
right: parent.right
|
|
||||||
left: extruderCircle.right
|
|
||||||
margins: UM.Theme.getSize("default_margin").width
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
Label
|
||||||
@ -81,14 +87,6 @@ Item
|
|||||||
|
|
||||||
opacity: 0.6
|
opacity: 0.6
|
||||||
font: UM.Theme.getFont("default")
|
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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user