Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2018-10-15 16:14:05 +0300
committerJaime van Kessel <nallath@gmail.com>2018-10-15 16:14:05 +0300
commitcd5a0a84a80ae0de2ed518cc18e3e19a67c88f79 (patch)
treef70bdcf69fcf6cdc479902538676041d474248ba /plugins/PrepareStage/PrepareMenu.qml
parent1c70a62df67918acb63ff233daa650c506f2ec7c (diff)
Horizontally align the prepare menu bar
CURA-5772
Diffstat (limited to 'plugins/PrepareStage/PrepareMenu.qml')
-rw-r--r--plugins/PrepareStage/PrepareMenu.qml57
1 files changed, 31 insertions, 26 deletions
diff --git a/plugins/PrepareStage/PrepareMenu.qml b/plugins/PrepareStage/PrepareMenu.qml
index 353c4df51a..ea247bf258 100644
--- a/plugins/PrepareStage/PrepareMenu.qml
+++ b/plugins/PrepareStage/PrepareMenu.qml
@@ -6,10 +6,9 @@ import UM 1.3 as UM
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.
signal showTooltip(Item item, point location, string text)
signal hideTooltip()
@@ -20,29 +19,35 @@ Row
name:"cura"
}
- 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.MachineAndConfigurationSelector
- {
- }
-
- Cura.MaterialAndVariantSelector
- {
- width: UM.Theme.getSize("sidebar").width
- }
-
- Cura.ProfileAndSettingComponent
+ Row
{
- width: UM.Theme.getSize("sidebar").width
- onShowTooltip: parent.showTooltip(item, location, text)
- onHideTooltip: parent.hideTooltip()
+ spacing: UM.Theme.getSize("default_margin").width
+ anchors.horizontalCenter: parent.horizontalCenter
+
+ 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.MachineAndConfigurationSelector
+ {
+ }
+
+ Cura.MaterialAndVariantSelector
+ {
+ width: UM.Theme.getSize("sidebar").width
+ }
+
+ Cura.ProfileAndSettingComponent
+ {
+ width: UM.Theme.getSize("sidebar").width
+ onShowTooltip: prepareMenu.showTooltip(item, location, text)
+ onHideTooltip: prepareMenu.hideTooltip()
+ }
}
} \ No newline at end of file