Files
amnezia-client/client/ui/qml/Pages2/PageSettings.qml
T

111 lines
2.9 KiB
QML
Raw Normal View History

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
2023-06-01 11:25:33 +08:00
import QtQuick.Dialogs
import PageEnum 1.0
import "./"
import "../Controls2"
import "../Controls2/TextTypes"
import "../Config"
PageType {
id: root
2023-06-01 11:25:33 +08:00
FlickableType {
id: fl
anchors.top: parent.top
anchors.bottom: parent.bottom
2023-06-01 11:25:33 +08:00
contentHeight: content.height
ColumnLayout {
id: content
2023-06-01 11:25:33 +08:00
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
2023-06-01 11:25:33 +08:00
HeaderType {
Layout.fillWidth: true
Layout.topMargin: 20
Layout.rightMargin: 16
Layout.leftMargin: 16
2023-06-01 11:25:33 +08:00
headerText: qsTr("Settings")
}
2023-06-01 11:25:33 +08:00
LabelWithButtonType {
Layout.fillWidth: true
Layout.topMargin: 16
2023-06-01 11:25:33 +08:00
text: qsTr("Servers")
rightImageSource: "qrc:/images/controls/chevron-right.svg"
leftImageSource: "qrc:/images/controls/server.svg"
2023-06-01 11:25:33 +08:00
clickedFunction: function() {
goToPage(PageEnum.PageSettingsServersList)
}
}
DividerType {}
LabelWithButtonType {
Layout.fillWidth: true
2023-06-01 11:25:33 +08:00
text: qsTr("Connection")
rightImageSource: "qrc:/images/controls/chevron-right.svg"
leftImageSource: "qrc:/images/controls/radio.svg"
2023-06-01 11:25:33 +08:00
clickedFunction: function() {
goToPage(PageEnum.PageSettingsConnection)
}
}
2023-06-01 11:25:33 +08:00
DividerType {}
2023-06-01 11:25:33 +08:00
LabelWithButtonType {
Layout.fillWidth: true
2023-06-01 11:25:33 +08:00
text: qsTr("Application")
rightImageSource: "qrc:/images/controls/chevron-right.svg"
leftImageSource: "qrc:/images/controls/app.svg"
2023-06-01 11:25:33 +08:00
clickedFunction: function() {
goToPage(PageEnum.PageSettingsApplication)
}
}
2023-06-01 11:25:33 +08:00
DividerType {}
2023-06-01 11:25:33 +08:00
LabelWithButtonType {
Layout.fillWidth: true
2023-06-01 11:25:33 +08:00
text: qsTr("Backup")
rightImageSource: "qrc:/images/controls/chevron-right.svg"
leftImageSource: "qrc:/images/controls/save.svg"
2023-06-01 11:25:33 +08:00
clickedFunction: function() {
goToPage(PageEnum.PageSettingsBackup)
}
2023-06-01 11:25:33 +08:00
}
2023-06-01 11:25:33 +08:00
DividerType {}
2023-06-01 11:25:33 +08:00
LabelWithButtonType {
Layout.fillWidth: true
text: qsTr("About AmneziaVPN")
rightImageSource: "qrc:/images/controls/chevron-right.svg"
leftImageSource: "qrc:/images/controls/amnezia.svg"
2023-06-01 11:25:33 +08:00
clickedFunction: function() {
goToPage(PageEnum.PageSettingsAbout)
}
}
2023-06-01 11:25:33 +08:00
DividerType {}
}
2023-06-01 11:25:33 +08:00
}
}