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