Skip to content

Commit

Permalink
Update GroundPowerWidget.qml
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed May 9, 2024
1 parent e9bae06 commit b7452ae
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions qml/ui/widgets/GroundPowerWidget.qml
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,13 @@ BaseWidget {
var percentage = _ohdSystemGround.ina219_voltage_millivolt;
battery_volt_text.visible= false;
battery_amp_text.visible=false;
battery_charging.visible= false;
}
else if (_ohdSystemGround.ina219_current_milliamps===1337) {
var percentage = _ohdSystemGround.ina219_voltage_millivolt;
battery_volt_text.visible= false;
battery_amp_text.visible= false;
battery_charging.visible= true;
batteryGauge.color= "green";
}
else {
Expand Down Expand Up @@ -239,6 +241,23 @@ BaseWidget {
styleColor: settings.color_glow
}

Text {
id: battery_charging
visible: false
color: settings.color_text
anchors.top: battery_percent.bottom
anchors.left: batteryGauge.right
anchors.leftMargin: 0
clip: true
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
horizontalAlignment: Text.AlignLeft
font.pixelSize: 14
font.family: settings.font_text
style: Text.Outline
styleColor: settings.color_glow
text:"\uf5e7"

Text {
id: batteryGauge
y: 8
Expand Down

0 comments on commit b7452ae

Please sign in to comment.