Commit 9dd91ffc authored by nanthony21's avatar nanthony21 Committed by Nick Anthony

Made it so that raw axis monitor indicators are narrow so that they don't...

Made it so that raw axis monitor indicators are narrow so that they don't obscure view of the deadzones.
parent 65b75a05
......@@ -85,6 +85,7 @@ SetupPage {
Item {
property int axisValue: 0
property int deadbandValue: 0
property bool narrowIndicator: false
property color __barColor: qgcPal.windowShade
......@@ -123,8 +124,8 @@ SetupPage {
// Indicator
Rectangle {
anchors.verticalCenter: parent.verticalCenter
width: parent.height * 0.75
height: width
width: parent.narrowIndicator ? height/6 : height
height: parent.height * 0.75
x: (reversed ? (parent.width - _indicatorPosition) : _indicatorPosition) - (width / 2)
radius: width / 2
color: qgcPal.text
......@@ -790,6 +791,7 @@ SetupPage {
height: ScreenTools.defaultFontPixelHeight
width: 200
sourceComponent: axisMonitorDisplayComponent
Component.onCompleted: item.narrowIndicator = true
property real defaultTextWidth: ScreenTools.defaultFontPixelWidth
property bool mapped: true
......
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