6import QGroundControl.Controls
10 Layout.fillWidth: true
13 property string labelText: "Label"
14 property string valueText: "value"
15 property string valueColor: ""
16 property bool showDivider: true
20 Layout.fillWidth: true
21 Layout.topMargin: ScreenTools.defaultFontPixelHeight * 0.2
22 Layout.bottomMargin: ScreenTools.defaultFontPixelHeight * 0.2
23 spacing: ScreenTools.defaultFontPixelHeight
27 Layout.fillWidth: true
28 Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
30 wrapMode: Text.WordWrap
35 Layout.fillWidth: true
36 Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
37 horizontalAlignment: Text.AlignRight
39 color: root.valueColor !== "" ? root.valueColor : QGroundControl.globalPalette.text
40 wrapMode: Text.WordWrap
45 Layout.fillWidth: true
46 Layout.preferredHeight: 1
47 color: Qt.rgba(QGroundControl.globalPalette.text.r, QGroundControl.globalPalette.text.g, QGroundControl.globalPalette.text.b, 0.08)
48 visible: root.showDivider