Add demo mode and easteregg color to about page

This commit is contained in:
2024-11-28 14:08:34 +01:00
parent f33c6e9471
commit ef616178ea

View File

@@ -1,6 +1,7 @@
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import EVChargerApp
NavigationPage {
title: qsTr("About")
@@ -29,4 +30,31 @@ NavigationPage {
}
}
}
GeneralOnOffSwitch {
apiKey: "demo"
text: qsTr("Enable demo mode")
visible: true
}
WhiteItemDelegate {
SendMessageHelper {
id: setChargingColor
deviceConnection: theDeviceConnection
}
text: qsTr("Set charging color to new")
onClicked: setChargingColor.sendMessage({
type: "setValue",
key: "cch",
value: "#FEFEFE"
})
BusyIndicator {
visible: setChargingColor.pending
}
RequestStatusText {
request: setChargingColor
}
}
}