From 2d95c457dd3100bc7b9393b0b3f96af8b273f88c Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Sun, 9 Jul 2023 00:11:59 +0200 Subject: [PATCH] qml: addressdetails item order, add technical properties header --- .../gui/qml/components/AddressDetails.qml | 110 +++++++++--------- 1 file changed, 57 insertions(+), 53 deletions(-) diff --git a/electrum/gui/qml/components/AddressDetails.qml b/electrum/gui/qml/components/AddressDetails.qml index b72fff689..e779a8e03 100644 --- a/electrum/gui/qml/components/AddressDetails.qml +++ b/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') - } } }