Commit a4ea5660 authored by Gus Grubba's avatar Gus Grubba

Tweaking Attitude Indicator

parent 59c8eaa3
...@@ -5,7 +5,7 @@ if [ ! -d /Volumes/RAMDisk ] ; then ...@@ -5,7 +5,7 @@ if [ ! -d /Volumes/RAMDisk ] ; then
exit 1 exit 1
fi fi
#-- Set to my local installation #-- Set to my local installation
QMAKE=/Applications/Qt/5.5/ios/bin/qmake QMAKE=/Users/gus/Applications/Qt/5.7/ios/bin/qmake
#-- Using Travis variables as this will eventually live there #-- Using Travis variables as this will eventually live there
SHADOW_BUILD_DIR=/Volumes/RAMDisk/build-qgroundcontrol-iOS-Release SHADOW_BUILD_DIR=/Volumes/RAMDisk/build-qgroundcontrol-iOS-Release
TRAVIS_BUILD_DIR=/Users/gus/github/work/qgroundcontrol TRAVIS_BUILD_DIR=/Users/gus/github/work/qgroundcontrol
......
...@@ -21,15 +21,13 @@ import QGroundControl.Controls 1.0 ...@@ -21,15 +21,13 @@ import QGroundControl.Controls 1.0
Rectangle { Rectangle {
property real pitchAngle: 0 property real pitchAngle: 0
property real rollAngle: 0 property real rollAngle: 0
property real size: _defaultSize property real size: ScreenTools.isAndroid ? 300 : 100
property real _reticleHeight: 1 property real _reticleHeight: 1
property real _reticleSpacing: size * 0.15 property real _reticleSpacing: size * 0.15
property real _reticleSlot: _reticleSpacing + _reticleHeight property real _reticleSlot: _reticleSpacing + _reticleHeight
property real _longDash: size * 0.40 property real _longDash: size * 0.35
property real _shortDash: size * 0.25 property real _shortDash: size * 0.25
property real _fontSize: ScreenTools.defaultFontPointSize * (size / _defaultSize) property real _fontSize: ScreenTools.defaultFontPointSize * 0.75
property real _defaultSize: ScreenTools.isAndroid ? 300 : 100
height: size height: size
width: size width: size
...@@ -55,22 +53,22 @@ Rectangle { ...@@ -55,22 +53,22 @@ Rectangle {
smooth: true smooth: true
QGCLabel { QGCLabel {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
anchors.horizontalCenterOffset: -(_longDash * 0.8) anchors.horizontalCenterOffset: -(_longDash)
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
smooth: true smooth: true
font.family: ScreenTools.demiboldFontFamily font.family: ScreenTools.demiboldFontFamily
font.pointSize: _fontSize < 1 ? 1 : _fontSize; font.pointSize: _fontSize
text: _pitch text: _pitch
color: "white" color: "white"
visible: (_pitch != 0) && ((_pitch % 10) === 0) visible: (_pitch != 0) && ((_pitch % 10) === 0)
} }
QGCLabel { QGCLabel {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
anchors.horizontalCenterOffset: (_longDash * 0.8) anchors.horizontalCenterOffset: (_longDash)
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
smooth: true smooth: true
font.family: ScreenTools.demiboldFontFamily font.family: ScreenTools.demiboldFontFamily
font.pointSize: _fontSize < 1 ? 1 : _fontSize; font.pointSize: _fontSize
text: _pitch text: _pitch
color: "white" color: "white"
visible: (_pitch != 0) && ((_pitch % 10) === 0) visible: (_pitch != 0) && ((_pitch % 10) === 0)
......
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