From 91c5f48e6feb89fdbb1d77009139992b80dee19f Mon Sep 17 00:00:00 2001 From: Manuel Date: Mon, 19 Feb 2024 19:45:53 +0100 Subject: [PATCH] Update --- .../devicelist/battery/PageBatteryCells.qml | 66 +++++++++---------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/pages/settings/devicelist/battery/PageBatteryCells.qml b/pages/settings/devicelist/battery/PageBatteryCells.qml index 2591770cb..01ad8a16b 100644 --- a/pages/settings/devicelist/battery/PageBatteryCells.qml +++ b/pages/settings/devicelist/battery/PageBatteryCells.qml @@ -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)" @@ -43,12 +43,12 @@ 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 { @@ -56,12 +56,12 @@ Page { 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 { @@ -69,12 +69,12 @@ Page { 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 { @@ -82,12 +82,12 @@ Page { 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 } } ] @@ -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 } }, @@ -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 } }, @@ -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 } }, @@ -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 } }