From 562b4c50dffabeda67961f487dcb5abc1d90c84a Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Mon, 2 Jan 2023 16:58:37 +0100 Subject: [PATCH] qml: add a few more dialog icons --- electrum/gui/qml/components/ChannelDetails.qml | 3 ++- electrum/gui/qml/components/CloseChannelDialog.qml | 1 + electrum/gui/qml/components/InvoiceDialog.qml | 1 + electrum/gui/qml/components/ReceiveDialog.qml | 1 + electrum/gui/qml/components/ServerConfigDialog.qml | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qml/components/ChannelDetails.qml b/electrum/gui/qml/components/ChannelDetails.qml index 16a71c8eb..88a6a1df5 100644 --- a/electrum/gui/qml/components/ChannelDetails.qml +++ b/electrum/gui/qml/components/ChannelDetails.qml @@ -223,7 +223,8 @@ Pane { { title: qsTr('Channel Backup for %1').arg(channeldetails.short_cid), text: channeldetails.channelBackup(), - text_help: channeldetails.channelBackupHelpText() + text_help: channeldetails.channelBackupHelpText(), + iconSource: Qt.resolvedUrl('../../icons/file.png') } ) dialog.open() diff --git a/electrum/gui/qml/components/CloseChannelDialog.qml b/electrum/gui/qml/components/CloseChannelDialog.qml index e02c66340..5a64cca72 100644 --- a/electrum/gui/qml/components/CloseChannelDialog.qml +++ b/electrum/gui/qml/components/CloseChannelDialog.qml @@ -16,6 +16,7 @@ ElDialog { title: qsTr('Close Channel') standardButtons: closing ? 0 : Dialog.Cancel + iconSource: Qt.resolvedUrl('../../icons/lightning_disconnected.png') modal: true parent: Overlay.overlay diff --git a/electrum/gui/qml/components/InvoiceDialog.qml b/electrum/gui/qml/components/InvoiceDialog.qml index ddf0a348a..eda7f4161 100644 --- a/electrum/gui/qml/components/InvoiceDialog.qml +++ b/electrum/gui/qml/components/InvoiceDialog.qml @@ -18,6 +18,7 @@ ElDialog { title: qsTr('Invoice') standardButtons: invoice_key != '' ? Dialog.Close : Dialog.Cancel + iconSource: Qt.resolvedUrl('../../icons/tab_send.png') padding: 0 diff --git a/electrum/gui/qml/components/ReceiveDialog.qml b/electrum/gui/qml/components/ReceiveDialog.qml index 4e9ce29c8..280c1d516 100644 --- a/electrum/gui/qml/components/ReceiveDialog.qml +++ b/electrum/gui/qml/components/ReceiveDialog.qml @@ -24,6 +24,7 @@ ElDialog { parent: Overlay.overlay modal: true standardButtons: Dialog.Close + iconSource: Qt.resolvedUrl('../../icons/tab_receive.png') Overlay.modal: Rectangle { color: "#aa000000" diff --git a/electrum/gui/qml/components/ServerConfigDialog.qml b/electrum/gui/qml/components/ServerConfigDialog.qml index 576c171be..1ec8c0629 100644 --- a/electrum/gui/qml/components/ServerConfigDialog.qml +++ b/electrum/gui/qml/components/ServerConfigDialog.qml @@ -60,6 +60,7 @@ ElDialog { horizontalPadding: 0 Layout.fillHeight: true Layout.fillWidth: true + Layout.bottomMargin: constants.paddingLarge ListView { id: serversListView