use Theme properties

This commit is contained in:
Iuri Matias 2020-06-04 10:30:34 -04:00
parent 9b58111cab
commit b412a56577
2 changed files with 7 additions and 9 deletions

View File

@ -12,21 +12,21 @@ Item {
Text { Text {
id: modalDialogTitle id: modalDialogTitle
text: "Add/Remove Tokens" text: qsTr("Add/Remove Tokens")
anchors.top: parent.top anchors.top: parent.top
anchors.left: parent.left anchors.left: parent.left
font.bold: true font.bold: true
font.pixelSize: 17 font.pixelSize: 17
anchors.leftMargin: 16 anchors.leftMargin: Theme.padding
anchors.topMargin: 16 anchors.topMargin: Theme.padding
} }
Image { Image {
id: closeModalImg id: closeModalImg
anchors.top: parent.top anchors.top: parent.top
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: 16 anchors.rightMargin: Theme.padding
anchors.topMargin: 16 anchors.topMargin: Theme.padding
source: "../../../img/close.svg" source: "../../../img/close.svg"
MouseArea { MouseArea {
id: closeModalMouseArea id: closeModalMouseArea
@ -50,7 +50,7 @@ Item {
anchors.top: headerSeparator.bottom anchors.top: headerSeparator.bottom
anchors.topMargin: Theme.padding anchors.topMargin: Theme.padding
anchors.bottom: footerSeparator.top anchors.bottom: footerSeparator.top
anchors.bottomMargin: 16 anchors.bottomMargin: Theme.padding
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 32 anchors.leftMargin: 32
@ -133,12 +133,10 @@ Item {
StyledButton { StyledButton {
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: Theme.padding anchors.rightMargin: Theme.padding
label: "Apply to all accounts" label: qsTr("Apply to all accounts")
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.bottomMargin: Theme.padding anchors.bottomMargin: Theme.padding
onClicked: { onClicked: {
// console.log(txtCurrency.textField.text)
// assetsModel.setDefaultCurrency(txtCurrency.textField.text)
popup.close() popup.close()
} }
} }