Modify the header in the simulation view menu component

This is needed to align with the designs.
This commit is contained in:
Diego Prado Gesto 2018-12-11 13:53:05 +01:00
parent 3593b7f152
commit faa3f42acc
2 changed files with 32 additions and 10 deletions

View file

@ -35,14 +35,36 @@ Cura.ExpandableComponent
} }
} }
headerItem: Label headerItem: Item
{ {
id: layerViewTypesLabel Label
text: catalog.i18nc("@label", "Color scheme") {
font: UM.Theme.getFont("default") id: colorSchemeLabel
color: UM.Theme.getColor("setting_control_text") text: catalog.i18nc("@label", "Color scheme")
height: base.height verticalAlignment: Text.AlignVCenter
verticalAlignment: Text.AlignVCenter height: parent.height
elide: Text.ElideRight
font: UM.Theme.getFont("default")
color: UM.Theme.getColor("text_medium")
renderType: Text.NativeRendering
}
Label
{
text: layerTypeCombobox.currentText
verticalAlignment: Text.AlignVCenter
anchors
{
left: colorSchemeLabel.right
leftMargin: UM.Theme.getSize("default_margin").width
right: parent.right
}
height: parent.height
elide: Text.ElideRight
font: UM.Theme.getFont("default")
color: UM.Theme.getColor("text")
renderType: Text.NativeRendering
}
} }
contentItem: Column contentItem: Column
@ -125,7 +147,7 @@ Cura.ExpandableComponent
Label Label
{ {
id: compatibilityModeLabel id: compatibilityModeLabel
text: catalog.i18nc("@label","Compatibility Mode") text: catalog.i18nc("@label", "Compatibility Mode")
font: UM.Theme.getFont("default") font: UM.Theme.getFont("default")
color: UM.Theme.getColor("text") color: UM.Theme.getColor("text")
visible: UM.SimulationView.compatibilityMode visible: UM.SimulationView.compatibilityMode
@ -136,7 +158,7 @@ Cura.ExpandableComponent
Item // Spacer Item // Spacer
{ {
height: Math.round(UM.Theme.getSize("default_margin").width / 2) height: UM.Theme.getSize("narrow_margin").width
width: width width: width
} }

View file

@ -43,7 +43,7 @@ Cura.ExpandablePopup
Label Label
{ {
id: title id: title
text: catalog.i18nc("@button", "View types") text: catalog.i18nc("@label", "View types")
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
height: parent.height height: parent.height
elide: Text.ElideRight elide: Text.ElideRight