mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-05 16:51:12 -07:00
Added topbar to Cura
CURA-3964
This commit is contained in:
parent
8776cedd27
commit
7e07482dec
5 changed files with 264 additions and 241 deletions
|
|
@ -329,7 +329,8 @@ UM.MainWindow
|
|||
tooltip: '';
|
||||
anchors
|
||||
{
|
||||
top: parent.top;
|
||||
top: topbar.bottom;
|
||||
topMargin: UM.Theme.getSize("default_margin").height;
|
||||
left: parent.left;
|
||||
}
|
||||
action: Cura.Actions.open;
|
||||
|
|
@ -371,13 +372,21 @@ UM.MainWindow
|
|||
}
|
||||
}
|
||||
|
||||
Topbar
|
||||
{
|
||||
id: topbar
|
||||
anchors.left:parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: parent.top
|
||||
}
|
||||
|
||||
Sidebar
|
||||
{
|
||||
id: sidebar;
|
||||
|
||||
anchors
|
||||
{
|
||||
top: parent.top;
|
||||
top: topbar.bottom;
|
||||
bottom: parent.bottom;
|
||||
right: parent.right;
|
||||
}
|
||||
|
|
@ -412,7 +421,7 @@ UM.MainWindow
|
|||
color: UM.Theme.getColor("viewport_overlay")
|
||||
anchors
|
||||
{
|
||||
top: parent.top
|
||||
top: topbar.bottom
|
||||
bottom: parent.bottom
|
||||
left:parent.left
|
||||
right: sidebar.left
|
||||
|
|
@ -437,8 +446,6 @@ UM.MainWindow
|
|||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.horizontalCenterOffset: - UM.Theme.getSize("sidebar").width / 2
|
||||
|
||||
|
||||
}
|
||||
|
||||
UM.MessageStack
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue