fix: fix lists in browser settings

This commit is contained in:
Jonathan Rainville 2021-01-19 15:26:01 -05:00 committed by Iuri Matias
parent 7fef440a97
commit c26e91ab35
1 changed files with 55 additions and 85 deletions

View File

@ -18,18 +18,22 @@ Item {
property Component searchEngineModal: SearchEngineModal {}
property Component ethereumExplorerModal: EthereumExplorerModal {}
Column {
id: generalColumn
spacing: Style.current.bigPadding
Item {
anchors.top: parent.top
anchors.topMargin: 46
anchors.left: parent.left
anchors.leftMargin: contentMargin
anchors.right: parent.right
anchors.rightMargin: contentMargin
anchors.bottom: parent.bottom
Column {
id: generalColumn
width: parent.width
StatusSectionHeadline {
text: qsTr("General")
bottomPadding: Style.current.bigPadding
}
StatusSettingsLineButton {
@ -61,10 +65,6 @@ Item {
onClicked: searchEngineModal.createObject(root).open()
}
Item {
width: parent.width
height: childrenRect.height
StatusSettingsLineButton {
id: ethereumExplorerBtn
text: qsTr("Ethereum explorer used in the address bar")
@ -83,63 +83,33 @@ Item {
text: qsTr("Open an ethereum explorer after a transaction hash or an address is entered")
font.pixelSize: 15
color: Style.current.secondaryText
anchors.top: ethereumExplorerBtn.bottom
anchors.topMargin: 2
anchors.left: parent.left
anchors.right: parent.right
anchors.rightMargin: 150
width: parent.width - 150
wrapMode: Text.WordWrap
}
bottomPadding: Style.current.bigPadding
}
// TODO redd this when we figure out how to set the download path for the browser
// Separator {}
// StatusSectionHeadline {
// text: qsTr("Downloads")
// }
// Item {
// height: textItem.height
// width: parent.width
// StyledText {
// id: textItem
// text: qsTr("Location")
// font.pixelSize: 15
// }
// StyledText {
// id: valueText
// text: "path/to/downloads"
// font.pixelSize: 15
// color: Style.current.secondaryText
// anchors.right: locationBtn.left
// anchors.rightMargin: Style.current.halfPadding
// anchors.verticalCenter: textItem.verticalCenter
// }
// StatusButton {
// id: locationBtn
// text: qsTr("Change")
// anchors.right: parent.right
// anchors.verticalCenter: textItem.verticalCenter
// onClicked: {
// console.log('change location')
// }
// }
// }
Separator {}
Separator {
id: separator1
anchors.topMargin: Style.current.bigPadding
anchors.left: parent.left
anchors.leftMargin: -Style.current.padding
anchors.right: parent.right
anchors.rightMargin: -Style.current.padding
}
StatusSectionHeadline {
text: qsTr("Privacy")
topPadding: Style.current.bigPadding
bottomPadding: Style.current.padding
}
StatusSettingsLineButton {
text: qsTr("Set DApp access permissions")
onClicked: dappListPopup.createObject(root).open()
isSwitch: false
onClicked: {
dappListPopup.createObject(root).open()
}
}
}
}
}