2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2020-05-27 21:28:25 +00:00
|
|
|
import "../../../../imports"
|
2020-06-19 18:06:58 +00:00
|
|
|
import "../../../../shared"
|
2020-05-27 21:28:25 +00:00
|
|
|
|
|
|
|
Item {
|
|
|
|
id: advancedContainer
|
|
|
|
width: 200
|
|
|
|
height: 200
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-07-01 17:35:57 +00:00
|
|
|
id: title
|
2020-05-27 21:28:25 +00:00
|
|
|
text: qsTr("Advanced settings")
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 24
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 24
|
|
|
|
font.weight: Font.Bold
|
|
|
|
font.pixelSize: 20
|
|
|
|
}
|
2020-06-18 12:03:11 +00:00
|
|
|
|
2020-07-01 17:35:57 +00:00
|
|
|
RowLayout {
|
|
|
|
// TODO move this to a new panel once we have the appearance panel
|
2020-07-02 15:05:50 +00:00
|
|
|
property bool isDarkTheme: {
|
|
|
|
const isDarkTheme = profileModel.profile.appearance === 1
|
|
|
|
if (isDarkTheme) {
|
|
|
|
Style.changeTheme('dark')
|
|
|
|
} else {
|
|
|
|
Style.changeTheme('light')
|
|
|
|
}
|
|
|
|
return isDarkTheme
|
|
|
|
}
|
2020-07-01 17:35:57 +00:00
|
|
|
id: themeSetting
|
|
|
|
anchors.top: title.bottom
|
|
|
|
anchors.topMargin: 20
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 24
|
|
|
|
StyledText {
|
|
|
|
text: qsTr("Theme (Light - Dark)")
|
|
|
|
}
|
|
|
|
Switch {
|
|
|
|
checked: themeSetting.isDarkTheme
|
|
|
|
onCheckedChanged: function(value) {
|
2020-07-02 15:05:50 +00:00
|
|
|
profileModel.changeTheme(themeSetting.isDarkTheme ? 0 : 1)
|
2020-07-01 17:35:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-18 12:03:11 +00:00
|
|
|
RowLayout {
|
2020-06-26 14:08:08 +00:00
|
|
|
id: walletTabSettings
|
2020-07-01 17:35:57 +00:00
|
|
|
anchors.top: themeSetting.bottom
|
2020-06-18 12:03:11 +00:00
|
|
|
anchors.topMargin: 20
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 24
|
2020-06-26 14:08:08 +00:00
|
|
|
StyledText {
|
|
|
|
text: qsTr("Wallet Tab")
|
|
|
|
}
|
|
|
|
Switch {
|
|
|
|
checked: walletBtn.enabled
|
|
|
|
onCheckedChanged: function(value) {
|
|
|
|
walletBtn.enabled = this.checked
|
|
|
|
}
|
|
|
|
}
|
|
|
|
StyledText {
|
|
|
|
text: qsTr("NOT RECOMMENDED - Use at your own risk")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
id: browserTabSettings
|
|
|
|
anchors.top: walletTabSettings.bottom
|
|
|
|
anchors.topMargin: 20
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 24
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-18 12:03:11 +00:00
|
|
|
text: qsTr("Browser Tab")
|
|
|
|
}
|
|
|
|
Switch {
|
|
|
|
checked: browserBtn.enabled
|
|
|
|
onCheckedChanged: function(value) {
|
|
|
|
browserBtn.enabled = this.checked
|
|
|
|
}
|
|
|
|
}
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-18 12:03:11 +00:00
|
|
|
text: qsTr("experimental (web3 not supported yet)")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
anchors.top: browserTabSettings.bottom
|
|
|
|
anchors.topMargin: 20
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 24
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-18 12:03:11 +00:00
|
|
|
text: qsTr("Node Management Tab")
|
|
|
|
}
|
|
|
|
Switch {
|
|
|
|
checked: nodeBtn.enabled
|
|
|
|
onCheckedChanged: function(value) {
|
|
|
|
nodeBtn.enabled = this.checked
|
|
|
|
}
|
|
|
|
}
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-18 12:03:11 +00:00
|
|
|
text: qsTr("under development")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
|
|
|
D{i:0;height:400;width:700}
|
2020-05-27 21:28:25 +00:00
|
|
|
}
|
2020-06-18 12:03:11 +00:00
|
|
|
##^##*/
|