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/guh-control/ui/SettingsPage.qml
2017-11-26 17:08:01 +01:00

66 lines
1.7 KiB
QML

import QtQuick 2.5
import QtQuick.Controls 2.1
import QtQuick.Controls.Material 2.1
import QtQuick.Layouts 1.1
import Guh 1.0
import "components"
Page {
id: root
header: GuhHeader {
text: "Settings"
backButtonVisible: true
onBackPressed: pageStack.pop()
}
ColumnLayout {
anchors { left: parent.left; right: parent.right; top: parent.top; margins: app.margins }
Label {
Layout.fillWidth: true
text: "Application".toUpperCase()
color: app.guhAccent
}
RowLayout {
Layout.fillWidth: true
Label {
Layout.fillWidth: true
text: "Full screen"
}
CheckBox {
checked: settings.fullscreen
onClicked: settings.fullscreen = checked
}
}
RowLayout {
Layout.fillWidth: true
Label {
Layout.fillWidth: true
text: "Return to home on idle"
}
CheckBox {
checked: settings.returnToHome
onClicked: settings.returnToHome = checked
}
}
RowLayout {
Layout.fillWidth: true
Label {
Layout.fillWidth: true
text: "Graph style"
}
RadioButton {
checked: settings.graphStyle === "bars"
text: "Bars"
onClicked: settings.graphStyle = "bars"
}
RadioButton {
checked: settings.graphStyle === "bezier"
text: "Lines"
onClicked: settings.graphStyle = "bezier"
}
}
}
}