diff --git a/electrum/gui/qml/components/ConfirmTxDialog.qml b/electrum/gui/qml/components/ConfirmTxDialog.qml index b19db825f..e649fcaf2 100644 --- a/electrum/gui/qml/components/ConfirmTxDialog.qml +++ b/electrum/gui/qml/components/ConfirmTxDialog.qml @@ -196,17 +196,35 @@ Dialog { Repeater { model: finalizer.outputs - delegate: RowLayout { + delegate: TextHighlightPane { Layout.columnSpan: 2 - Label { - text: modelData.address - } - Label { - text: modelData.value_sats + Layout.fillWidth: true + padding: 0 + leftPadding: constants.paddingSmall + RowLayout { + width: parent.width + Label { + text: modelData.address + Layout.fillWidth: true + wrapMode: Text.Wrap + font.pixelSize: constants.fontSizeLarge + font.family: FixedFont + color: modelData.is_mine ? constants.colorMine : Material.foreground + } + Label { + text: Config.formatSats(modelData.value_sats) + font.pixelSize: constants.fontSizeMedium + font.family: FixedFont + } + Label { + text: Config.baseUnit + font.pixelSize: constants.fontSizeMedium + color: Material.accentColor + } } } } - + Rectangle { height: 1 Layout.fillWidth: true diff --git a/electrum/gui/qml/qetxfinalizer.py b/electrum/gui/qml/qetxfinalizer.py index 7a8c9fef9..900abe3e2 100644 --- a/electrum/gui/qml/qetxfinalizer.py +++ b/electrum/gui/qml/qetxfinalizer.py @@ -245,7 +245,8 @@ class QETxFinalizer(QObject): for o in tx.outputs(): outputs.append({ 'address': o.get_ui_address_str(), - 'value_sats': o.value + 'value_sats': o.value, + 'is_mine': self._wallet.wallet.is_mine(o.get_ui_address_str()) }) self.outputs = outputs