Horizontally align the prepare menu bar

CURA-5772
This commit is contained in:
Jaime van Kessel 2018-10-15 15:14:05 +02:00
parent 1c70a62df6
commit cd5a0a84a8

View file

@ -6,10 +6,9 @@ import UM 1.3 as UM
import Cura 1.1 as Cura import Cura 1.1 as Cura
Row Item
{ {
spacing: UM.Theme.getSize("default_margin").width id: prepareMenu
// This widget doesn't show tooltips by itself. Instead it emits signals so others can do something with it. // This widget doesn't show tooltips by itself. Instead it emits signals so others can do something with it.
signal showTooltip(Item item, point location, string text) signal showTooltip(Item item, point location, string text)
signal hideTooltip() signal hideTooltip()
@ -20,29 +19,35 @@ Row
name:"cura" name:"cura"
} }
Button Row
{ {
id: openFileButton spacing: UM.Theme.getSize("default_margin").width
text: catalog.i18nc("@action:button", "Open File") anchors.horizontalCenter: parent.horizontalCenter
iconSource: UM.Theme.getIcon("load")
style: UM.Theme.styles.tool_button
tooltip: ""
action: Cura.Actions.open
}
Cura.MachineAndConfigurationSelector Button
{ {
} id: openFileButton
text: catalog.i18nc("@action:button", "Open File")
iconSource: UM.Theme.getIcon("load")
style: UM.Theme.styles.tool_button
tooltip: ""
action: Cura.Actions.open
}
Cura.MaterialAndVariantSelector Cura.MachineAndConfigurationSelector
{ {
width: UM.Theme.getSize("sidebar").width }
}
Cura.ProfileAndSettingComponent Cura.MaterialAndVariantSelector
{ {
width: UM.Theme.getSize("sidebar").width width: UM.Theme.getSize("sidebar").width
onShowTooltip: parent.showTooltip(item, location, text) }
onHideTooltip: parent.hideTooltip()
Cura.ProfileAndSettingComponent
{
width: UM.Theme.getSize("sidebar").width
onShowTooltip: prepareMenu.showTooltip(item, location, text)
onHideTooltip: prepareMenu.hideTooltip()
}
} }
} }