5import QGroundControl.Controls
8 // Indicates whether calibration is valid for this control
9 property bool calValid: false
11 // Indicates whether the control is currently being calibrated
12 property bool calInProgress: false
14 // Text to show while calibration is in progress
15 property string calInProgressText: qsTr("Hold Still")
18 property var imageSource: ""
20 property var __qgcPal: QGCPalette { colorGroupEnabled: enabled }
22 color: calInProgress ? "yellow" : (calValid ? "green" : "red")
25 readonly property int inset: 5
29 width: parent.width - (inset * 2)
30 height: parent.height - (inset * 2)
31 color: qgcPal.windowShade
37 fillMode: Image.PreserveAspectFit
44 horizontalAlignment: Text.AlignHCenter
45 verticalAlignment: Text.AlignBottom
46 font.pointSize: ScreenTools.mediumFontPointSize
47 text: calInProgress ? calInProgressText : (calValid ? qsTr("Completed") : qsTr("Incomplete"))