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

Plan toolbar tweaks

parent a026d63f
...@@ -17,7 +17,7 @@ Rectangle { ...@@ -17,7 +17,7 @@ Rectangle {
anchors.right: parent.right anchors.right: parent.right
anchors.top: parent.top anchors.top: parent.top
z: toolBar.z + 1 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 visible: false
signal showFlyView signal showFlyView
...@@ -56,6 +56,14 @@ Rectangle { ...@@ -56,6 +56,14 @@ Rectangle {
QGCPalette { id: qgcPal } 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 { Row {
anchors.top: parent.top anchors.top: parent.top
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
......
...@@ -259,6 +259,7 @@ Item { ...@@ -259,6 +259,7 @@ Item {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
anchors.top: parent.top anchors.top: parent.top
opacity: planToolBar.visible ? 0 : 1
z: QGroundControl.zOrderTopMost z: QGroundControl.zOrderTopMost
Component.onCompleted: ScreenTools.availableHeight = parent.height - toolBar.height 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