Commit 4530e96d authored by dogmaphobic's avatar dogmaphobic

Fix sizes on Android

parent 2114e760
......@@ -52,14 +52,14 @@ Item {
anchors.right: parent.right
anchors.bottom: parent.bottom
height: root.size
width: instruments.width + 8
width: instruments.width + ScreenTools.defaultFontPixelSize
radius: root.size / 2
visible: _isVisible
color: isSatellite ? Qt.rgba(1,1,1,0.5) : Qt.rgba(0,0,0,0.5)
Row {
id: instruments
height: parent.height
spacing: 4
spacing: ScreenTools.defaultFontPixelSize / 2
anchors.horizontalCenter: parent.horizontalCenter
QGCAttitudeWidget {
id: attitude
......@@ -87,9 +87,9 @@ Item {
id: openButton
anchors.right: parent.right
anchors.bottom: parent.bottom
height: 24
width: 24
radius: 4
height: ScreenTools.defaultFontPixelSize * 2
width: ScreenTools.defaultFontPixelSize * 2
radius: ScreenTools.defaultFontPixelSize / 3
visible: !_isVisible
color: isSatellite ? Qt.rgba(1,1,1,0.5) : Qt.rgba(0,0,0,0.5)
Image {
......
......@@ -34,13 +34,15 @@ import QGroundControl.Controls 1.0
Rectangle {
property real pitchAngle: 0
property real rollAngle: 0
property real size: 100
property real size: _defaultSize
property real _reticleHeight: 1
property real _reticleSpacing: size * 0.15
property real _reticleSlot: _reticleSpacing + _reticleHeight
property real _longDash: size * 0.40
property real _shortDash: size * 0.25
property real _fontSize: ScreenTools.defaultFontPixelSize * (size / 100)
property real _fontSize: ScreenTools.defaultFontPixelSize * (size / _defaultSize)
property real _defaultSize: ScreenTools.isAndroid ? 300 : 100
height: size * 0.9
width: size
......
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