WIP: center path slider between view controls and action panel

CURA-6874
This commit is contained in:
Nino van Hooff 2019-10-25 15:06:33 +02:00
parent 8198762755
commit 9430d05cac
3 changed files with 57 additions and 13 deletions

View file

@ -301,6 +301,17 @@ UM.MainWindow
}
}
// A hint for the loaded content view. Overlay items / controls can safely be placed in this area
Rectangle {
id: mainSafeArea
anchors.left: viewOrientationControls.right
anchors.right: main.right
anchors.top: main.top
anchors.bottom: main.bottom
visible: true // set to true for debugging only
color:"#8000FF00"
}
Loader
{
// A stage can control this area. If nothing is set, it will therefore show the 3D view.
@ -316,6 +327,12 @@ UM.MainWindow
}
source: UM.Controller.activeStage != null ? UM.Controller.activeStage.mainComponent : ""
onLoaded: {
if (main.item.safeArea !== undefined){
main.item.safeArea = Qt.binding(function() { return mainSafeArea });
}
}
}
Loader