Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-manuel committed Feb 19, 2024
1 parent 853cc14 commit 91c5f48
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions pages/settings/devicelist/battery/PageBatteryCells.qml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,26 @@ Page {
property string bindPrefix
property var details

property VeQuickItem {
id: batteryCellVoltageSum
uid: root.bindPrefix + "/Voltages/Sum"
}
property VeQuickItem {
id: batteryCellVoltageDiff
uid: root.bindPrefix + "/Voltages/Diff"
}
property VeQuickItem {
id: batteryMinCellVoltage
uid: root.bindPrefix + "/System/MinCellVoltage"
}
property VeQuickItem {
id: batteryMaxCellVoltage
uid: root.bindPrefix + "/System/MaxCellVoltage"
}

GradientListView {
model: ObjectModel {

VeQuickItem {
id: batteryCellVoltageSum
uid: root.bindPrefix + "/Voltages/Sum"
}
VeQuickItem {
id: batteryCellVoltageDiff
uid: root.bindPrefix + "/Voltages/Diff"
}
VeQuickItem {
id: batteryMinCellVoltage
uid: root.bindPrefix + "/System/MinCellVoltage"
}
VeQuickItem {
id: batteryMaxCellVoltage
uid: root.bindPrefix + "/System/MaxCellVoltage"
}

ListItem {

text: "Cells (Min/Max/Diff/Sum)"
Expand All @@ -43,51 +43,51 @@ Page {
Text {
text: batteryCellVoltageSum.value.toFixed(2) + "V"
color: Theme.color_font_primary
font.pixelSize: font_size_body2
font.pixelSize: 24
}
Text {
text: "Sum"
color: Theme.color_font_secondary
font.pixelSize: font_size_body1
font.pixelSize: 16
}
},
Column {
width: parent.width / 4
Text {
text: batteryCellVoltageDiff.value.toFixed(3) + "V"
color: Theme.color_font_primary
font.pixelSize: font_size_body2
font.pixelSize: 24
}
Text {
text: "Diff"
color: Theme.color_font_secondary
font.pixelSize: font_size_body1
font.pixelSize: 16
}
},
Column {
width: parent.width / 4
Text {
text: batteryMaxCellVoltage.value.toFixed(3) + "V"
color: Theme.color_font_primary
font.pixelSize: font_size_body2
font.pixelSize: 24
}
Text {
text: "Max"
color: Theme.color_font_secondary
font.pixelSize: font_size_body1
font.pixelSize: 16
}
},
Column {
width: parent.width / 4
Text {
text: batteryMinCellVoltage.value.toFixed(3) + "V"
color: Theme.color_font_primary
font.pixelSize: font_size_body2
font.pixelSize: 24
}
Text {
text: "Min"
color: Theme.color_font_secondary
font.pixelSize: font_size_body1
font.pixelSize: 16
}
}
]
Expand All @@ -105,13 +105,13 @@ Page {
Text {
text: batteryCellVoltageSum.value.toFixed(2) + "V"
color: Theme.color_font_primary
font.pixelSize: font_size_body2
font.pixelSize: 24
anchors.horizontalCenter: parent.horizontalCenter
}
Text {
text: "Sum"
color: Theme.color_font_secondary
font.pixelSize: font_size_body1
font.pixelSize: 16
anchors.horizontalCenter: parent.horizontalCenter
}
},
Expand All @@ -120,13 +120,13 @@ Page {
Text {
text: batteryCellVoltageDiff.value.toFixed(3) + "V"
color: Theme.color_font_primary
font.pixelSize: font_size_body2
font.pixelSize: 24
anchors.horizontalCenter: parent.horizontalCenter
}
Text {
text: "Diff"
color: Theme.color_font_secondary
font.pixelSize: font_size_body1
font.pixelSize: 16
anchors.horizontalCenter: parent.horizontalCenter
}
},
Expand All @@ -135,13 +135,13 @@ Page {
Text {
text: batteryMaxCellVoltage.value.toFixed(3) + "V"
color: Theme.color_font_primary
font.pixelSize: font_size_body2
font.pixelSize: 24
anchors.horizontalCenter: parent.horizontalCenter
}
Text {
text: "Max"
color: Theme.color_font_secondary
font.pixelSize: font_size_body1
font.pixelSize: 16
anchors.horizontalCenter: parent.horizontalCenter
}
},
Expand All @@ -150,13 +150,13 @@ Page {
Text {
text: batteryMinCellVoltage.value.toFixed(3) + "V"
color: Theme.color_font_primary
font.pixelSize: font_size_body2
font.pixelSize: 24
anchors.horizontalCenter: parent.horizontalCenter
}
Text {
text: "Min"
color: Theme.color_font_secondary
font.pixelSize: font_size_body1
font.pixelSize: 16
anchors.horizontalCenter: parent.horizontalCenter
}
}
Expand Down

0 comments on commit 91c5f48

Please sign in to comment.