15.10 Placement of the buttons in the contentArea

Contributes to: issue CURA-60
This commit is contained in:
Tamara Hogenhout 2015-08-17 17:22:58 +02:00
parent d69ca6fa41
commit 42fd35a8c2

View File

@ -257,10 +257,12 @@ UM.MainWindow {
} }
Image { Image {
id: logo
anchors { anchors {
verticalCenter: openFileButton.verticalCenter; left: parent.left
left: openFileButton.right; leftMargin: UM.Theme.sizes.default_margin.width;
leftMargin: UM.Theme.sizes.window_margin.width; bottom: parent.bottom
bottomMargin: UM.Theme.sizes.default_margin.height;
} }
source: UM.Theme.images.logo; source: UM.Theme.images.logo;
@ -272,13 +274,12 @@ UM.MainWindow {
} }
Button { Button {
id: viewModeButton
anchors { anchors {
top: parent.top; top: parent.top;
topMargin: UM.Theme.sizes.window_margin.height;
right: sidebar.left; right: sidebar.left;
rightMargin: UM.Theme.sizes.window_margin.width; rightMargin: UM.Theme.sizes.window_margin.width;
} }
id: viewModeButton
//: View Mode toolbar button //: View Mode toolbar button
text: qsTr("View Mode"); text: qsTr("View Mode");
iconSource: UM.Theme.icons.viewmode; iconSource: UM.Theme.icons.viewmode;
@ -308,10 +309,9 @@ UM.MainWindow {
id: toolbar; id: toolbar;
anchors { anchors {
left: parent.left; horizontalCenter: parent.horizontalCenter
leftMargin: UM.Theme.sizes.window_margin.width; horizontalCenterOffset: -(UM.Theme.sizes.panel.width / 2)
bottom: parent.bottom; top: parent.top;
bottomMargin: UM.Theme.sizes.window_margin.height;
} }
} }