mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 05:07:50 -06:00
Align the material and variant labels in the center of the header
CURA-8013
This commit is contained in:
parent
348bf0c4c1
commit
327acfd49c
1 changed files with 83 additions and 79 deletions
|
@ -56,10 +56,21 @@ Cura.ExpandablePopup
|
||||||
id: extruderIcon
|
id: extruderIcon
|
||||||
materialColor: model.color
|
materialColor: model.color
|
||||||
extruderEnabled: model.enabled
|
extruderEnabled: model.enabled
|
||||||
height: parent.height
|
width: UM.Theme.getSize("button_icon").width
|
||||||
width: height
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Item
|
||||||
|
{
|
||||||
|
height: childrenRect.height
|
||||||
|
anchors
|
||||||
|
{
|
||||||
|
left: extruderIcon.right
|
||||||
|
leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
|
verticalCenter: parent.verticalCenter
|
||||||
|
right: parent.right
|
||||||
|
rightMargin: UM.Theme.getSize("default_margin").width
|
||||||
|
}
|
||||||
// Label for the brand of the material
|
// Label for the brand of the material
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
|
@ -73,11 +84,9 @@ Cura.ExpandablePopup
|
||||||
|
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
top: extruderIcon.top
|
top: parent.top
|
||||||
left: extruderIcon.right
|
left: parent.left
|
||||||
leftMargin: UM.Theme.getSize("default_margin").width
|
|
||||||
right: parent.right
|
right: parent.right
|
||||||
rightMargin: UM.Theme.getSize("default_margin").width
|
|
||||||
}
|
}
|
||||||
visible: !truncated
|
visible: !truncated
|
||||||
}
|
}
|
||||||
|
@ -94,11 +103,9 @@ Cura.ExpandablePopup
|
||||||
|
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
top: extruderIcon.top
|
top: parent.top
|
||||||
left: extruderIcon.right
|
left: parent.left
|
||||||
leftMargin: UM.Theme.getSize("default_margin").width
|
|
||||||
right: parent.right
|
right: parent.right
|
||||||
rightMargin: UM.Theme.getSize("default_margin").width
|
|
||||||
}
|
}
|
||||||
|
|
||||||
visible: !materialBrandColorTypeLabel.visible && !truncated
|
visible: !materialBrandColorTypeLabel.visible && !truncated
|
||||||
|
@ -116,11 +123,9 @@ Cura.ExpandablePopup
|
||||||
|
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
top: extruderIcon.top
|
top: parent.top
|
||||||
left: extruderIcon.right
|
left: parent.left
|
||||||
leftMargin: UM.Theme.getSize("default_margin").width
|
|
||||||
right: parent.right
|
right: parent.right
|
||||||
rightMargin: UM.Theme.getSize("default_margin").width
|
|
||||||
}
|
}
|
||||||
visible: !materialBrandColorTypeLabel.visible && !materialColorTypeLabel.visible
|
visible: !materialBrandColorTypeLabel.visible && !materialColorTypeLabel.visible
|
||||||
}
|
}
|
||||||
|
@ -139,11 +144,10 @@ Cura.ExpandablePopup
|
||||||
|
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
left: extruderIcon.right
|
left: parent.left
|
||||||
leftMargin: UM.Theme.getSize("default_margin").width
|
|
||||||
top: materialBrandColorTypeLabel.bottom
|
top: materialBrandColorTypeLabel.bottom
|
||||||
right: parent.right
|
right: parent.right
|
||||||
rightMargin: UM.Theme.getSize("default_margin").width
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue