mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 22:13:58 -06:00
Move USB sidebar into the main view of the monitorstage
CURA-5943
This commit is contained in:
parent
6db52dde46
commit
6d4a460e58
8 changed files with 250 additions and 184 deletions
|
@ -146,6 +146,7 @@ UM.MainWindow
|
|||
|
||||
Rectangle
|
||||
{
|
||||
id: stageMenuBackground
|
||||
anchors
|
||||
{
|
||||
left: parent.left
|
||||
|
@ -153,7 +154,7 @@ UM.MainWindow
|
|||
top: parent.top
|
||||
}
|
||||
visible: stageMenu.source != ""
|
||||
height: Math.round(UM.Theme.getSize("stage_menu").height / 2)
|
||||
height: visible ? Math.round(UM.Theme.getSize("stage_menu").height / 2) : 0
|
||||
|
||||
LinearGradient
|
||||
{
|
||||
|
@ -254,7 +255,13 @@ UM.MainWindow
|
|||
// A stage can control this area. If nothing is set, it will therefore show the 3D view.
|
||||
id: main
|
||||
|
||||
anchors.fill: parent
|
||||
anchors
|
||||
{
|
||||
top: stageMenuBackground.bottom
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
bottom: parent.bottom
|
||||
}
|
||||
|
||||
source: UM.Controller.activeStage != null ? UM.Controller.activeStage.mainComponent : ""
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue