mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 08:55:54 +08:00
Center the material label if no variant in the ConfigurationMenu header
CURA-8011
This commit is contained in:
parent
ff19d1dd63
commit
5ae4ad5429
@ -59,10 +59,10 @@ Cura.ExpandablePopup
|
|||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
Item
|
ColumnLayout
|
||||||
{
|
{
|
||||||
height: childrenRect.height
|
|
||||||
opacity: model.enabled ? 1 : UM.Theme.getColor("extruder_disabled").a
|
opacity: model.enabled ? 1 : UM.Theme.getColor("extruder_disabled").a
|
||||||
|
spacing: 0
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
left: extruderIcon.right
|
left: extruderIcon.right
|
||||||
@ -81,13 +81,8 @@ Cura.ExpandablePopup
|
|||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
|
width: parent.width
|
||||||
|
|
||||||
anchors
|
|
||||||
{
|
|
||||||
top: parent.top
|
|
||||||
left: parent.left
|
|
||||||
right: parent.right
|
|
||||||
}
|
|
||||||
visible: !truncated
|
visible: !truncated
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -100,13 +95,7 @@ Cura.ExpandablePopup
|
|||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
|
width: parent.width
|
||||||
anchors
|
|
||||||
{
|
|
||||||
top: parent.top
|
|
||||||
left: parent.left
|
|
||||||
right: parent.right
|
|
||||||
}
|
|
||||||
|
|
||||||
visible: !materialBrandColorTypeLabel.visible && !truncated
|
visible: !materialBrandColorTypeLabel.visible && !truncated
|
||||||
}
|
}
|
||||||
@ -120,13 +109,7 @@ Cura.ExpandablePopup
|
|||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
|
width: parent.width
|
||||||
anchors
|
|
||||||
{
|
|
||||||
top: parent.top
|
|
||||||
left: parent.left
|
|
||||||
right: parent.right
|
|
||||||
}
|
|
||||||
visible: !materialBrandColorTypeLabel.visible && !materialColorTypeLabel.visible
|
visible: !materialBrandColorTypeLabel.visible && !materialColorTypeLabel.visible
|
||||||
}
|
}
|
||||||
// Label that shows the name of the variant
|
// Label that shows the name of the variant
|
||||||
@ -141,13 +124,7 @@ Cura.ExpandablePopup
|
|||||||
font: UM.Theme.getFont("default_bold")
|
font: UM.Theme.getFont("default_bold")
|
||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
|
width: parent.width
|
||||||
anchors
|
|
||||||
{
|
|
||||||
left: parent.left
|
|
||||||
top: materialBrandColorTypeLabel.bottom
|
|
||||||
right: parent.right
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user