From 9c73a55c451bbc4f6fc5635a3d43fa42c13d2d81 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Fri, 3 Mar 2023 10:08:34 +0100 Subject: [PATCH] qml: styling CPFP dialog, Toaster, GenericShareDialog --- electrum/gui/qml/components/CpfpBumpFeeDialog.qml | 4 ++-- electrum/gui/qml/components/GenericShareDialog.qml | 6 ++++-- electrum/gui/qml/components/controls/Toaster.qml | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/electrum/gui/qml/components/CpfpBumpFeeDialog.qml b/electrum/gui/qml/components/CpfpBumpFeeDialog.qml index 7f573f51d..675c817ff 100644 --- a/electrum/gui/qml/components/CpfpBumpFeeDialog.qml +++ b/electrum/gui/qml/components/CpfpBumpFeeDialog.qml @@ -16,6 +16,7 @@ ElDialog { signal txaccepted title: qsTr('Bump Fee') + iconSource: Qt.resolvedUrl('../../icons/rocket.png') width: parent.width height: parent.height @@ -182,8 +183,7 @@ ElDialog { delegate: TextHighlightPane { Layout.columnSpan: 2 Layout.fillWidth: true - padding: 0 - leftPadding: constants.paddingSmall + RowLayout { width: parent.width Label { diff --git a/electrum/gui/qml/components/GenericShareDialog.qml b/electrum/gui/qml/components/GenericShareDialog.qml index f533e1cbe..734c597ef 100644 --- a/electrum/gui/qml/components/GenericShareDialog.qml +++ b/electrum/gui/qml/components/GenericShareDialog.qml @@ -54,9 +54,9 @@ ElDialog { } TextHighlightPane { - Layout.alignment: Qt.AlignHCenter + Layout.leftMargin: constants.paddingMedium + Layout.rightMargin: constants.paddingMedium Layout.fillWidth: true - Layout.maximumWidth: qr.width Label { width: parent.width text: dialog.text @@ -69,6 +69,8 @@ ElDialog { } Label { + Layout.leftMargin: constants.paddingMedium + Layout.rightMargin: constants.paddingMedium visible: dialog.text_help text: dialog.text_help wrapMode: Text.Wrap diff --git a/electrum/gui/qml/components/controls/Toaster.qml b/electrum/gui/qml/components/controls/Toaster.qml index cad38cb3e..c8f3a8ea7 100644 --- a/electrum/gui/qml/components/controls/Toaster.qml +++ b/electrum/gui/qml/components/controls/Toaster.qml @@ -17,7 +17,7 @@ Item { function show(item, text) { _text = text var r = item.mapToItem(parent, item.x, item.y) - x = r.x - item.width + 0.5*(item.width - toaster.width) + x = r.x + 0.5*(item.width - toaster.width) y = r.y - toaster.height - constants.paddingLarge toaster._y = y - toaster.height ani.restart()