Browse Source

qml: addressdetails item order, add technical properties header

master
Sander van Grieken 2 years ago committed by accumulator
parent
commit
2d95c457dd
  1. 110
      electrum/gui/qml/components/AddressDetails.qml

110
electrum/gui/qml/components/AddressDetails.qml

@ -44,10 +44,18 @@ Pane {
text: qsTr('Address details')
}
Label {
text: qsTr('Address')
RowLayout {
Layout.columnSpan: 2
color: Material.accentColor
Label {
text: qsTr('Address')
color: Material.accentColor
}
Tag {
visible: addressdetails.isFrozen
text: qsTr('Frozen')
labelcolor: 'white'
}
}
TextHighlightPane {
@ -76,6 +84,24 @@ Pane {
}
}
Label {
text: qsTr('Balance')
color: Material.accentColor
}
FormattedAmount {
amount: addressdetails.balance
}
Label {
text: qsTr('Transactions')
color: Material.accentColor
}
Label {
text: addressdetails.numTx
}
Label {
Layout.columnSpan: 2
Layout.topMargin: constants.paddingSmall
@ -135,6 +161,34 @@ Pane {
}
}
Heading {
Layout.columnSpan: 2
text: qsTr('Technical Properties')
}
Label {
Layout.topMargin: constants.paddingSmall
text: qsTr('Script type')
color: Material.accentColor
}
Label {
Layout.topMargin: constants.paddingSmall
Layout.fillWidth: true
text: addressdetails.scriptType
}
Label {
visible: addressdetails.derivationPath
text: qsTr('Derivation path')
color: Material.accentColor
}
Label {
visible: addressdetails.derivationPath
text: addressdetails.derivationPath
}
Label {
Layout.columnSpan: 2
Layout.topMargin: constants.paddingSmall
@ -222,56 +276,6 @@ Pane {
}
}
}
Label {
Layout.topMargin: constants.paddingSmall
text: qsTr('Script type')
color: Material.accentColor
}
Label {
Layout.topMargin: constants.paddingSmall
Layout.fillWidth: true
text: addressdetails.scriptType
}
Label {
text: qsTr('Balance')
color: Material.accentColor
}
FormattedAmount {
amount: addressdetails.balance
}
Label {
text: qsTr('Transactions')
color: Material.accentColor
}
Label {
text: addressdetails.numTx
}
Label {
visible: addressdetails.derivationPath
text: qsTr('Derivation path')
color: Material.accentColor
}
Label {
visible: addressdetails.derivationPath
text: addressdetails.derivationPath
}
Label {
text: qsTr('Frozen')
color: Material.accentColor
}
Label {
text: addressdetails.isFrozen ? qsTr('Frozen') : qsTr('Not frozen')
}
}
}

Loading…
Cancel
Save