From 9dd91ffc52b2a3cced1a47bf38da7de6d77b47ba Mon Sep 17 00:00:00 2001 From: nanthony21 Date: Wed, 24 Jan 2018 21:59:58 -0600 Subject: [PATCH] Made it so that raw axis monitor indicators are narrow so that they don't obscure view of the deadzones. --- src/VehicleSetup/JoystickConfig.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/VehicleSetup/JoystickConfig.qml b/src/VehicleSetup/JoystickConfig.qml index 7efe052d59..ba35a3bdca 100644 --- a/src/VehicleSetup/JoystickConfig.qml +++ b/src/VehicleSetup/JoystickConfig.qml @@ -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 -- GitLab