15.10 restyling of the sidebar

Contributes to: issue CURA-60
This commit is contained in:
Tamara Hogenhout 2015-08-31 17:26:40 +02:00
parent 5cbeed753c
commit 33aa5f596f

View File

@ -41,18 +41,11 @@ Rectangle
}
}
ColumnLayout
{
anchors.fill: parent;
anchors.topMargin: UM.Theme.sizes.default_margin.height;
spacing: UM.Theme.sizes.default_margin.height;
SidebarHeader
{
SidebarHeader {
id: header;
Layout.fillWidth: true;
width: parent.width
height: totalHeightHeader
addMachineAction: base.addMachineAction;
configureMachinesAction: base.configureMachinesAction;
@ -70,12 +63,12 @@ Rectangle
onCurrentModeIndexChanged: UM.Preferences.setValue("cura/active_mode", currentModeIndex);
}
Loader
{
Loader{
id: sidebarContents;
Layout.fillWidth: true;
Layout.fillHeight: true;
anchors.bottom: saveButton.top
anchors.top: header.bottom
anchors.left: base.left
anchors.right: base.right
source: modesListModel.get(header.currentModeIndex).file;
@ -98,12 +91,11 @@ Rectangle
}
}
SaveButton
{
SaveButton {
id: saveButton;
implicitWidth: base.width
implicitHeight: totalHeight
}
anchors.bottom: parent.bottom
}
SidebarTooltip