electrum

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

commit 7a4270f5a4441c708556432a45f2b553129ae84e
parent 67b2aebed67988c733b3258fdc020e4ca9d2a409
Author: ThomasV <thomasv@electrum.org>
Date:   Thu, 13 Dec 2018 17:21:05 +0100

Qt: camera icon

Diffstat:
Melectrum/gui/qt/qrtextedit.py | 2+-
Melectrum/gui/qt/util.py | 1+
Micons.qrc | 2++
Aicons/camera_dark.png | 0
Aicons/camera_white.png | 0
5 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/electrum/gui/qt/qrtextedit.py b/electrum/gui/qt/qrtextedit.py @@ -39,7 +39,7 @@ class ScanQRTextEdit(ButtonsTextEdit, MessageBoxMixin): self.allow_multi = allow_multi self.setReadOnly(0) self.addButton(":icons/file.png", self.file_input, _("Read file")) - icon = ":icons/qrcode_white.png" if ColorScheme.dark_scheme else ":icons/qrcode.png" + icon = ":icons/camera_white.png" if ColorScheme.dark_scheme else ":icons/camera_dark.png" self.addButton(icon, self.qr_input, _("Read QR code")) run_hook('scan_text_edit', self) diff --git a/electrum/gui/qt/util.py b/electrum/gui/qt/util.py @@ -588,6 +588,7 @@ class ButtonsWidget(QWidget): def addButton(self, icon_name, on_click, tooltip): button = QToolButton(self) button.setIcon(QIcon(icon_name)) + button.setIconSize(QSize(25,25)) button.setStyleSheet("QToolButton { border: none; hover {border: 1px} pressed {border: 1px} padding: 0px; }") button.setVisible(True) button.setToolTip(tooltip) diff --git a/icons.qrc b/icons.qrc @@ -30,6 +30,8 @@ <file>icons/revealer_c.png</file> <file>icons/qrcode.png</file> <file>icons/qrcode_white.png</file> + <file>icons/camera_dark.png</file> + <file>icons/camera_white.png</file> <file>icons/preferences.png</file> <file>icons/safe-t_unpaired.png</file> <file>icons/safe-t.png</file> diff --git a/icons/camera_dark.png b/icons/camera_dark.png Binary files differ. diff --git a/icons/camera_white.png b/icons/camera_white.png Binary files differ.