mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-21 20:19:32 +08:00
15.10 restyling of the sidebar
Contributes to: issue CURA-60
This commit is contained in:
parent
5cbeed753c
commit
33aa5f596f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user