2018-07-18 14:16:03 +00:00
|
|
|
import QtQuick 2.9
|
2018-07-19 13:02:06 +00:00
|
|
|
import QtQuick.Controls 2.2
|
|
|
|
import QtQuick.Controls.Material 2.2
|
2018-07-18 14:16:03 +00:00
|
|
|
|
2018-07-19 13:02:06 +00:00
|
|
|
Page {
|
2018-07-20 04:14:02 +00:00
|
|
|
property alias darkTheme: themeSwitch.checked
|
|
|
|
property alias miniMode: miniModeSwitch.checked
|
2018-07-19 13:02:06 +00:00
|
|
|
|
|
|
|
header: TabBar {
|
|
|
|
id: tabBar
|
|
|
|
width: parent.width
|
|
|
|
currentIndex: settingView.currentIndex
|
|
|
|
|
|
|
|
TabButton {
|
|
|
|
text: qsTr("Account")
|
|
|
|
}
|
|
|
|
TabButton {
|
2018-07-20 04:14:02 +00:00
|
|
|
text: qsTr("Appearance")
|
2018-07-19 13:02:06 +00:00
|
|
|
}
|
|
|
|
TabButton {
|
2018-07-20 04:14:02 +00:00
|
|
|
text: qsTr("About")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SwipeView {
|
|
|
|
id: settingView
|
|
|
|
|
|
|
|
currentIndex: tabBar.currentIndex
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: accountPage
|
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: appearancePage
|
|
|
|
|
|
|
|
Column {
|
|
|
|
Switch {
|
|
|
|
id: themeSwitch
|
|
|
|
text: "Dark theme"
|
|
|
|
}
|
|
|
|
|
|
|
|
Switch {
|
|
|
|
id: miniModeSwitch
|
|
|
|
text: "Mini Room List"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: thirdPage
|
2018-07-19 13:02:06 +00:00
|
|
|
}
|
|
|
|
}
|
2018-07-18 14:16:03 +00:00
|
|
|
}
|