This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
powersync-app/nymea-app/ui/appsettings/DeveloperOptionsPage.qml
2019-07-04 23:45:31 +02:00

68 lines
1.9 KiB
QML

import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import Nymea 1.0
import "../components"
Page {
id: root
header: NymeaHeader {
text: qsTr("Developer options")
backButtonVisible: true
onBackPressed: pageStack.pop()
}
ColumnLayout {
anchors { left: parent.left; top: parent.top; right: parent.right }
RowLayout {
Layout.leftMargin: app.margins; Layout.rightMargin: app.margins
Label {
Layout.fillWidth: true
text: qsTr("Cloud environment")
}
ComboBox {
currentIndex: model.indexOf(app.settings.cloudEnvironment)
model: AWSClient.availableConfigs
onActivated: {
app.settings.cloudEnvironment = model[index];
}
}
}
CheckDelegate {
text: qsTr("Enable app logging")
enabled: AppLogController.canWriteLogs
checked: AppLogController.enabled
onCheckedChanged: AppLogController.enabled = checked;
Layout.fillWidth: true
}
NymeaListItemDelegate {
Layout.fillWidth: true
text: qsTr("View log")
onClicked: pageStack.push(Qt.resolvedUrl("../appsettings/AppLogPage.qml"))
enabled: AppLogController.enabled
}
RowLayout {
Layout.leftMargin: app.margins; Layout.rightMargin: app.margins
Label {
Layout.fillWidth: true
text: qsTr("Experience mode")
}
ComboBox {
currentIndex: model.indexOf(styleController.currentExperience)
model: styleController.allExperiences
onActivated: {
styleController.currentExperience = model[index]
}
}
}
}
}