Add demo mode and easteregg color to about page
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
import EVChargerApp
|
||||||
|
|
||||||
NavigationPage {
|
NavigationPage {
|
||||||
title: qsTr("About")
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user