chore: hide download location for now

This commit is contained in:
Jonathan Rainville 2021-01-04 16:35:16 -05:00 committed by Iuri Matias
parent 71477d0496
commit f99b91bc72
1 changed files with 33 additions and 42 deletions

View File

@ -92,53 +92,44 @@ Item {
}
}
// TODO redd this when we figure out how to set the download path for the browser
// Separator {}
// StatusSectionHeadline {
// text: qsTr("Downloads")
// }
Separator {}
// Item {
// height: textItem.height
// width: parent.width
StatusSectionHeadline {
text: qsTr("Downloads")
}
// 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
// }
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')
}
}
}
StatusSettingsLineButton {
text: qsTr("Location")
currentValue: "path/to/downloads"
onClicked: function () {
console.log('Change download')
}
}
// StatusButton {
// id: locationBtn
// text: qsTr("Change")
// anchors.right: parent.right
// anchors.verticalCenter: textItem.verticalCenter
// onClicked: {
// console.log('change location')
// }
// }
// }
Separator {}