diff --git a/application/qml/pages/MainPage.qml b/application/qml/pages/MainPage.qml index d6cf582..d60147a 100644 --- a/application/qml/pages/MainPage.qml +++ b/application/qml/pages/MainPage.qml @@ -31,6 +31,11 @@ Page { "empty": qsTr("empty", "Battery fully depleted"), "unknown": qsTr("unknown", "Battery not detected, or faulty, or something") } + property variant healthText: { + "good": qsTr("Good", "Battery is OK"), + "warm": qsTr("Warm", "Battery is warm"), + "overheat": qsTr("Overheated", "Battery is very hot"), + } property bool serviceRunning: true Timer { @@ -166,6 +171,16 @@ Page { label: qsTr("State:") value: statusText[battery.state] } + MyDetailItem { + label: qsTr("Health:") + value: healthText[battery.health] + } + MyDetailItem { + label: qsTr("Temperature:") + // TODO: use weird degrees for US users + //value: useImperial ? celsiusToFahrenheit(battery.temperature) + " F" : Math.floor(battery.temperature / 10) + " °C" + value: Math.floor(battery.temperature / 10) + " °C" + } } } Column {