1
0

qml: addressdetails item order, add technical properties header

This commit is contained in:
Sander van Grieken
2023-07-09 00:11:59 +02:00
committed by accumulator
parent 016b5eb743
commit 2d95c457dd

View File

@@ -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')
}
}
}