electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit ea235a1468bacb609cf91c2639e2493df0a0306d
parent d69ef890c0f7ab8c1f0e34c4f33853d57337804e
Author: SomberNight <somber.night@protonmail.com>
Date:   Mon,  3 Dec 2018 17:51:05 +0100

qt dark theme: use correct QR code icon (light/dark)

Diffstat:
Melectrum/gui/qt/address_dialog.py | 1+
Melectrum/gui/qt/qrtextedit.py | 3++-
Melectrum/gui/qt/transaction_dialog.py | 5+++--
3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/electrum/gui/qt/address_dialog.py b/electrum/gui/qt/address_dialog.py @@ -66,6 +66,7 @@ class AddressDialog(WindowModalDialog): for pubkey in pubkeys: pubkey_e = ButtonsLineEdit(pubkey) pubkey_e.addCopyButton(self.app) + pubkey_e.setReadOnly(True) vbox.addWidget(pubkey_e) try: diff --git a/electrum/gui/qt/qrtextedit.py b/electrum/gui/qt/qrtextedit.py @@ -13,7 +13,8 @@ class ShowQRTextEdit(ButtonsTextEdit): def __init__(self, text=None): ButtonsTextEdit.__init__(self, text) self.setReadOnly(1) - self.addButton(":icons/qrcode.png", self.qr_show, _("Show as QR code")) + icon = ":icons/qrcode_white.png" if ColorScheme.dark_scheme else ":icons/qrcode.png" + self.addButton(icon, self.qr_show, _("Show as QR code")) run_hook('show_text_edit', self) diff --git a/electrum/gui/qt/transaction_dialog.py b/electrum/gui/qt/transaction_dialog.py @@ -98,7 +98,8 @@ class TxDialog(QDialog, MessageBoxMixin): vbox.addWidget(QLabel(_("Transaction ID:"))) self.tx_hash_e = ButtonsLineEdit() qr_show = lambda: parent.show_qrcode(str(self.tx_hash_e.text()), 'Transaction ID', parent=self) - self.tx_hash_e.addButton(":icons/qrcode.png", qr_show, _("Show as QR code")) + qr_icon = ":icons/qrcode_white.png" if ColorScheme.dark_scheme else ":icons/qrcode.png" + self.tx_hash_e.addButton(qr_icon, qr_show, _("Show as QR code")) self.tx_hash_e.setReadOnly(True) vbox.addWidget(self.tx_hash_e) self.tx_desc = QLabel() @@ -139,7 +140,7 @@ class TxDialog(QDialog, MessageBoxMixin): b.setDefault(True) self.qr_button = b = QPushButton() - b.setIcon(QIcon(":icons/qrcode.png")) + b.setIcon(QIcon(qr_icon)) b.clicked.connect(self.show_qr) self.copy_button = CopyButton(lambda: str(self.tx), parent.app)