2020-06-17 15:18:31 -04:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2020-11-03 17:04:57 -04:00
|
|
|
import QtGraphicalEffects 1.13
|
2020-05-27 17:28:25 -04:00
|
|
|
import "../../../../imports"
|
2020-06-19 14:06:58 -04:00
|
|
|
import "../../../../shared"
|
2020-09-17 18:42:59 +02:00
|
|
|
import "../../../../shared/status"
|
2020-05-27 17:28:25 -04:00
|
|
|
|
|
|
|
Item {
|
|
|
|
id: advancedContainer
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
2021-01-14 15:12:37 +01:00
|
|
|
Column {
|
|
|
|
id: generalColumn
|
2020-05-27 17:28:25 -04:00
|
|
|
anchors.top: parent.top
|
2021-01-18 15:25:20 -05:00
|
|
|
anchors.topMargin: topMargin
|
2021-01-05 11:36:42 -05:00
|
|
|
anchors.left: parent.left
|
2021-01-14 15:12:37 +01:00
|
|
|
anchors.leftMargin: contentMargin
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: contentMargin
|
2021-01-05 11:36:42 -05:00
|
|
|
|
2021-01-19 15:51:16 -05:00
|
|
|
StatusSettingsLineButton {
|
|
|
|
text: qsTr("Network")
|
|
|
|
currentValue: utilsModel.getNetworkName()
|
2021-01-14 15:12:37 +01:00
|
|
|
onClicked: networksModal.open()
|
2021-01-05 11:36:42 -05:00
|
|
|
}
|
2021-01-14 15:12:37 +01:00
|
|
|
|
2021-01-19 15:51:16 -05:00
|
|
|
StatusSettingsLineButton {
|
|
|
|
text: qsTr("Fleet")
|
|
|
|
currentValue: profileModel.fleets.fleet
|
2021-01-14 15:12:37 +01:00
|
|
|
onClicked: fleetModal.open()
|
2021-01-05 11:36:42 -05:00
|
|
|
}
|
|
|
|
|
2021-01-19 15:51:16 -05:00
|
|
|
Item {
|
|
|
|
id: spacer1
|
|
|
|
height: Style.current.bigPadding
|
|
|
|
width: parent.width
|
|
|
|
}
|
|
|
|
|
|
|
|
Separator {
|
|
|
|
anchors.topMargin: Style.current.bigPadding
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: -Style.current.padding
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: -Style.current.padding
|
|
|
|
}
|
2020-08-18 15:10:30 -04:00
|
|
|
|
2021-01-14 15:12:37 +01:00
|
|
|
StatusSectionHeadline {
|
|
|
|
text: qsTr("Experimental features")
|
2021-01-19 15:51:16 -05:00
|
|
|
topPadding: Style.current.bigPadding
|
|
|
|
bottomPadding: Style.current.padding
|
2020-06-26 10:08:08 -04:00
|
|
|
}
|
|
|
|
|
2021-01-14 15:12:37 +01:00
|
|
|
StatusSettingsLineButton {
|
|
|
|
text: qsTr("Wallet")
|
|
|
|
isSwitch: true
|
|
|
|
switchChecked: appSettings.walletEnabled
|
|
|
|
onClicked: function (checked) {
|
|
|
|
appSettings.walletEnabled = checked
|
2020-09-22 10:12:48 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-14 15:12:37 +01:00
|
|
|
StatusSettingsLineButton {
|
|
|
|
text: qsTr("Dapp Browser")
|
|
|
|
isSwitch: true
|
|
|
|
switchChecked: appSettings.browserEnabled
|
|
|
|
onClicked: function (checked) {
|
|
|
|
appSettings.browserEnabled = checked
|
2020-06-18 08:03:11 -04:00
|
|
|
}
|
|
|
|
}
|
2020-11-23 15:14:48 -04:00
|
|
|
|
2021-01-14 15:12:37 +01:00
|
|
|
StatusSettingsLineButton {
|
|
|
|
text: qsTr("Communities")
|
|
|
|
isSwitch: true
|
|
|
|
switchChecked: appSettings.communitiesEnabled
|
|
|
|
onClicked: function (checked) {
|
|
|
|
appSettings.communitiesEnabled = checked
|
|
|
|
}
|
2020-11-23 15:14:48 -04:00
|
|
|
}
|
|
|
|
|
2021-01-14 15:12:37 +01:00
|
|
|
StatusSettingsLineButton {
|
|
|
|
text: qsTr("Node Management")
|
|
|
|
isSwitch: true
|
|
|
|
switchChecked: appSettings.nodeManagementEnabled
|
|
|
|
onClicked: function (checked) {
|
|
|
|
appSettings.nodeManagementEnabled = checked
|
|
|
|
}
|
2020-07-16 16:23:00 +10:00
|
|
|
}
|
|
|
|
}
|
2020-08-25 11:00:03 +02:00
|
|
|
|
2021-01-14 15:12:37 +01:00
|
|
|
NetworksModal {
|
|
|
|
id: networksModal
|
2020-11-03 17:04:57 -04:00
|
|
|
}
|
|
|
|
|
2021-01-14 15:12:37 +01:00
|
|
|
FleetsModal {
|
|
|
|
id: fleetModal
|
|
|
|
}
|
2020-08-25 11:00:03 +02:00
|
|
|
|
2020-08-27 13:28:31 -04:00
|
|
|
|
2020-06-18 08:03:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
|
|
|
D{i:0;height:400;width:700}
|
2020-05-27 17:28:25 -04:00
|
|
|
}
|
2020-06-18 08:03:11 -04:00
|
|
|
##^##*/
|