From 88a2e6a1e96151198920d4e92f5c70693fd416e7 Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Sun, 12 May 2024 22:47:01 +0200 Subject: [PATCH] Update GroundPowerWidget.qml --- qml/ui/widgets/GroundPowerWidget.qml | 36 ++++++++++++++++++---------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/qml/ui/widgets/GroundPowerWidget.qml b/qml/ui/widgets/GroundPowerWidget.qml index 667e5df7d..c087f85c2 100644 --- a/qml/ui/widgets/GroundPowerWidget.qml +++ b/qml/ui/widgets/GroundPowerWidget.qml @@ -95,23 +95,35 @@ BaseWidget { break; case 3: settings.ground_battery_type = 3; - customValues.visible=true; + battery_low.visible=true; + battery_mid.visible=true; + battery_full.visible=true; break; } } } } - Text { - id:customValues - visible: true - text: qsTr("Battery Type") - color: "white" - height: parent.height - font.bold: true - font.pixelSize: detailPanelFontPixels - anchors.left: parent.left - verticalAlignment: Text.AlignVCenter - } + TextInput { + id: battery_low + visible: false + width: 200 + height: 40 + placeholderText: "Batt Low" + } + TextInput { + id: battery_mid + visible: false + width: 200 + height: 40 + placeholderText: "Batt Mid" + } + TextInput { + id: battery_full + visible: false + width: 200 + height: 40 + placeholderText: "Batt High" + } } }