mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
Merge branch 'feature_configuration_menu_variant' of https://github.com/fieldOfView/Cura into 4.0
This commit is contained in:
commit
0ce0228f76
1 changed files with 23 additions and 2 deletions
|
@ -61,6 +61,27 @@ Cura.ExpandablePopup
|
|||
width: height
|
||||
}
|
||||
|
||||
// Label that shows the name of the variant
|
||||
Label
|
||||
{
|
||||
id: variantLabel
|
||||
|
||||
visible: Cura.MachineManager.hasVariants
|
||||
|
||||
text: model.variant
|
||||
elide: Text.ElideRight
|
||||
font: UM.Theme.getFont("medium")
|
||||
color: UM.Theme.getColor("text")
|
||||
renderType: Text.NativeRendering
|
||||
|
||||
anchors
|
||||
{
|
||||
left: extruderIcon.right
|
||||
leftMargin: UM.Theme.getSize("default_margin").width
|
||||
verticalCenter: parent.verticalCenter
|
||||
}
|
||||
}
|
||||
|
||||
// Label for the brand of the material
|
||||
Label
|
||||
{
|
||||
|
@ -74,7 +95,7 @@ Cura.ExpandablePopup
|
|||
|
||||
anchors
|
||||
{
|
||||
left: extruderIcon.right
|
||||
left: variantLabel.visible ? variantLabel.right : extruderIcon.right
|
||||
leftMargin: UM.Theme.getSize("default_margin").width
|
||||
right: parent.right
|
||||
rightMargin: UM.Theme.getSize("default_margin").width
|
||||
|
@ -92,7 +113,7 @@ Cura.ExpandablePopup
|
|||
|
||||
anchors
|
||||
{
|
||||
left: extruderIcon.right
|
||||
left: variantLabel.visible ? variantLabel.right : extruderIcon.right
|
||||
leftMargin: UM.Theme.getSize("default_margin").width
|
||||
right: parent.right
|
||||
rightMargin: UM.Theme.getSize("default_margin").width
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue