Commit 587ea466 authored by Gus Grubba's avatar Gus Grubba

Plan toolbar tweaks

parent a026d63f
......@@ -17,7 +17,7 @@ Rectangle {
anchors.right: parent.right
anchors.top: parent.top
z: toolBar.z + 1
color: qgcPal.window
color: qgcPal.globalTheme === QGCPalette.Light ? Qt.rgba(1,1,1,0.8) : Qt.rgba(0,0,0,0.75)
visible: false
signal showFlyView
......@@ -56,6 +56,14 @@ Rectangle {
QGCPalette { id: qgcPal }
//-- Eat mouse events, preventing them from reaching toolbar, which is underneath us.
MouseArea {
anchors.fill: parent
onWheel: { wheel.accepted = true; }
onPressed: { mouse.accepted = true; }
onReleased: { mouse.accepted = true; }
}
Row {
anchors.top: parent.top
anchors.bottom: parent.bottom
......
......@@ -259,6 +259,7 @@ Item {
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
opacity: planToolBar.visible ? 0 : 1
z: QGroundControl.zOrderTopMost
Component.onCompleted: ScreenTools.availableHeight = parent.height - toolBar.height
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment