124 lines
3.2 KiB
QML
Raw Normal View History

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"
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
Column {
id: generalColumn
2020-05-27 17:28:25 -04:00
anchors.top: parent.top
anchors.topMargin: topMargin
anchors.left: parent.left
anchors.leftMargin: contentMargin
anchors.right: parent.right
anchors.rightMargin: contentMargin
2021-01-19 15:51:16 -05:00
StatusSettingsLineButton {
2021-02-18 11:36:05 -05:00
//% "Network"
text: qsTrId("network")
2021-01-19 15:51:16 -05:00
currentValue: utilsModel.getNetworkName()
onClicked: networksModal.open()
}
2021-01-19 15:51:16 -05:00
StatusSettingsLineButton {
2021-02-18 11:36:05 -05:00
//% "Fleet"
text: qsTrId("fleet")
2021-01-19 15:51:16 -05:00
currentValue: profileModel.fleets.fleet
onClicked: fleetModal.open()
}
2021-02-22 18:10:47 -04:00
StatusSettingsLineButton {
text: qsTr("Minimize on close")
isSwitch: true
switchChecked: !appSettings.quitOnClose
onClicked: function (checked) {
appSettings.quitOnClose = !checked
}
}
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
}
StatusSectionHeadline {
2021-02-18 11:36:05 -05:00
//% "Experimental features"
text: qsTrId("experimental-features")
2021-01-19 15:51:16 -05:00
topPadding: Style.current.bigPadding
bottomPadding: Style.current.padding
}
StatusSettingsLineButton {
2021-02-18 11:36:05 -05:00
//% "Wallet"
text: qsTrId("wallet")
isSwitch: true
switchChecked: appSettings.walletEnabled
onClicked: function (checked) {
appSettings.walletEnabled = checked
2020-09-22 10:12:48 -05:00
}
}
StatusSettingsLineButton {
2021-02-18 11:36:05 -05:00
//% "Dapp Browser"
text: qsTrId("dapp-browser")
isSwitch: true
switchChecked: appSettings.browserEnabled
onClicked: function (checked) {
appSettings.browserEnabled = checked
}
}
2020-11-23 15:14:48 -04:00
StatusSettingsLineButton {
2021-02-18 11:36:05 -05:00
//% "Communities"
text: qsTrId("communities")
isSwitch: true
switchChecked: appSettings.communitiesEnabled
onClicked: function (checked) {
appSettings.communitiesEnabled = checked
}
2020-11-23 15:14:48 -04:00
}
StatusSettingsLineButton {
2021-02-18 11:36:05 -05:00
//% "Node Management"
text: qsTrId("node-management")
isSwitch: true
switchChecked: appSettings.nodeManagementEnabled
onClicked: function (checked) {
appSettings.nodeManagementEnabled = checked
}
}
}
2020-08-25 11:00:03 +02:00
NetworksModal {
id: networksModal
2020-11-03 17:04:57 -04:00
}
FleetsModal {
id: fleetModal
}
2020-08-25 11:00:03 +02:00
}
/*##^##
Designer {
D{i:0;height:400;width:700}
2020-05-27 17:28:25 -04:00
}
##^##*/