Spectral/qml/Setting.qml

59 lines
965 B
QML
Raw Normal View History

2018-02-23 14:39:14 +00:00
import QtQuick 2.10
import QtQuick.Controls 2.3
2018-03-21 11:13:47 +00:00
import QtQuick.Controls.Material 2.3
2018-02-23 14:39:14 +00:00
Page {
2018-03-21 11:13:47 +00:00
property alias theme: themeSwitch.checked
header: TabBar {
2018-02-23 14:39:14 +00:00
id: settingBar
width: parent.width
z: 10
currentIndex: settingBar.currentIndex
TabButton {
text: qsTr("Overview")
}
2018-03-05 11:11:55 +00:00
TabButton {
text: qsTr("Interface")
}
2018-02-23 14:39:14 +00:00
TabButton {
text: qsTr("Network")
}
2018-03-05 11:11:55 +00:00
2018-02-23 14:39:14 +00:00
TabButton {
text: qsTr("Sync")
}
}
SwipeView {
id: settingSwipe
currentIndex: settingBar.currentIndex
anchors.fill: parent
Page {
}
Page {
2018-03-21 11:13:47 +00:00
Column {
width: parent.width
Switch {
id: themeSwitch
text: qsTr("Dark Theme")
}
}
2018-02-23 14:39:14 +00:00
}
Page {
}
2018-03-05 11:11:55 +00:00
Page {
}
2018-02-23 14:39:14 +00:00
}
}