Commit 8a9f0c1a authored by dogmaphobic's avatar dogmaphobic

Controls work better aesthetically when centered on the screen.

parent fe60f712
...@@ -76,20 +76,20 @@ Item { ...@@ -76,20 +76,20 @@ Item {
//-- Instrument Pannel //-- Instrument Pannel
QGCInstrumentWidget { QGCInstrumentWidget {
anchors.margins: ScreenTools.defaultFontPixelHeight anchors.margins: ScreenTools.defaultFontPixelHeight
anchors.right: parent.right anchors.right: parent.right
anchors.bottom: parent.bottom anchors.verticalCenter: parent.verticalCenter
size: ScreenTools.defaultFontPixelSize * (9) size: ScreenTools.defaultFontPixelSize * (9)
active: _activeVehicle != null active: _activeVehicle != null
heading: _heading heading: _heading
rollAngle: _roll rollAngle: _roll
pitchAngle: _pitch pitchAngle: _pitch
altitude: _altitudeWGS84 altitude: _altitudeWGS84
groundSpeed: _groundSpeed groundSpeed: _groundSpeed
airSpeed: _airSpeed airSpeed: _airSpeed
climbRate: _climbRate climbRate: _climbRate
isSatellite: _mainIsMap ? _flightMap ? _flightMap.isSatelliteMap : true : true isSatellite: _mainIsMap ? _flightMap ? _flightMap.isSatelliteMap : true : true
z: QGroundControl.zOrderWidgets z: QGroundControl.zOrderWidgets
} }
//-- Vertical Tool Buttons //-- Vertical Tool Buttons
...@@ -97,7 +97,7 @@ Item { ...@@ -97,7 +97,7 @@ Item {
id: toolColumn id: toolColumn
anchors.margins: ScreenTools.defaultFontPixelHeight anchors.margins: ScreenTools.defaultFontPixelHeight
anchors.left: parent.left anchors.left: parent.left
anchors.top: parent.top anchors.verticalCenter: parent.verticalCenter
spacing: ScreenTools.defaultFontPixelHeight spacing: ScreenTools.defaultFontPixelHeight
//-- Map Center Control //-- Map Center Control
......
...@@ -51,14 +51,14 @@ Item { ...@@ -51,14 +51,14 @@ Item {
//-- Instrument Pannel //-- Instrument Pannel
Rectangle { Rectangle {
id: instrumentPannel id: instrumentPannel
height: instruments.height + ScreenTools.defaultFontPixelSize height: instruments.height + ScreenTools.defaultFontPixelSize
width: root.size width: root.size
radius: root.size / 2 radius: root.size / 2
visible: _isVisible visible: _isVisible
color: isSatellite ? Qt.rgba(1,1,1,0.75) : Qt.rgba(0,0,0,0.75) color: isSatellite ? Qt.rgba(1,1,1,0.75) : Qt.rgba(0,0,0,0.75)
anchors.right: parent.right anchors.right: parent.right
anchors.bottom: parent.bottom anchors.verticalCenter: parent.verticalCenter
Column { Column {
id: instruments id: instruments
width: parent.width width: parent.width
...@@ -185,14 +185,14 @@ Item { ...@@ -185,14 +185,14 @@ Item {
//-- Show Instruments //-- Show Instruments
Rectangle { Rectangle {
id: openButton id: openButton
anchors.right: parent.right anchors.right: parent.right
anchors.bottom: parent.bottom anchors.verticalCenter: parent.verticalCenter
height: ScreenTools.defaultFontPixelSize * 2 height: ScreenTools.defaultFontPixelSize * 2
width: ScreenTools.defaultFontPixelSize * 2 width: ScreenTools.defaultFontPixelSize * 2
radius: ScreenTools.defaultFontPixelSize / 3 radius: ScreenTools.defaultFontPixelSize / 3
visible: !_isVisible visible: !_isVisible
color: isSatellite ? Qt.rgba(1,1,1,0.5) : Qt.rgba(0,0,0,0.5) color: isSatellite ? Qt.rgba(1,1,1,0.5) : Qt.rgba(0,0,0,0.5)
Image { Image {
width: parent.width * 0.75 width: parent.width * 0.75
height: parent.height * 0.75 height: parent.height * 0.75
......
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