From 7a4270f5a4441c708556432a45f2b553129ae84e Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 13 Dec 2018 17:21:05 +0100 Subject: [PATCH] Qt: camera icon --- electrum/gui/qt/qrtextedit.py | 2 +- electrum/gui/qt/util.py | 1 + icons.qrc | 2 ++ icons/camera_dark.png | Bin 0 -> 687 bytes icons/camera_white.png | Bin 0 -> 1304 bytes 5 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 icons/camera_dark.png create mode 100644 icons/camera_white.png diff --git a/electrum/gui/qt/qrtextedit.py b/electrum/gui/qt/qrtextedit.py index 5676d78a3..53cb4ff43 100644 --- 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 index ff93b181c..29cc20aa5 100644 --- 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 index 19c298adc..cd77e912d 100644 --- a/icons.qrc +++ b/icons.qrc @@ -30,6 +30,8 @@ icons/revealer_c.png icons/qrcode.png icons/qrcode_white.png + icons/camera_dark.png + icons/camera_white.png icons/preferences.png icons/safe-t_unpaired.png icons/safe-t.png diff --git a/icons/camera_dark.png b/icons/camera_dark.png new file mode 100644 index 0000000000000000000000000000000000000000..c2b73f70c729746bf776b40e33bfc000cbc4684e GIT binary patch literal 687 zcmV;g0#N;lP)s~<(Kd6qO|?Q_@-?mIXQZy)P3AiG>k%Mw^eXS~b(KASUylGK zM=u|;wAOFF3&cr|opZN5J9ob^)yV%lqw8o&RV#wu)EFj*TPuQBXo#yY*CKy+i|rx> zy!W`P4&+MfDn+nlVk?<3nw!P_p&;Ht=&5EJDg~*YeKq`DnR%6w=K>7n?_&)bS_|r;UFGP;+1*^6}{X=#C-bw}0 z{pmiiw3s&W*O)9oOV1f?Em6DB0(!TXLxP$AbdOR;&eRZc2}zhZ=T5g!`*(PBIXwIU ziHVuf^Fhaxq72iksPbbZBSi8KBI4nX$<1mE-JI2Xhjwg_hq?_0gTY`h7z~Ds@dHtE V$t<7t@g4vG002ovPDHLkV1k!{ISv2- literal 0 HcmV?d00001 diff --git a/icons/camera_white.png b/icons/camera_white.png new file mode 100644 index 0000000000000000000000000000000000000000..1a07a6f5095badd052778a700480d5c1ef017daa GIT binary patch literal 1304 zcmV+z1?T#SP)Is6iwUU!a0++=!X2OGS6?1e3K{1$1dZ zFj)xh6jTy3i;3Vy22?az3{Tj-frLfq{5=kEe&w0=@Ag<^J$qZO~3bcVw z%CT^1Xx1SnxwQ3x!II-TGE1~c+lbIv?eLh=*Y;{c}e^Iow28`*i&=l=j|Z1 z9hbD?&!$6;nMzt~0Sg6RE(MY)RdJ?$gZqpf}3|NS2 z!1hj=+5JG*>xr~<=4RQk<$o>Pb|G?Y$dqhR34vHQvu;JQF$!Kbv(uTi<%_9|l}c*+ z(Hc;GcRigS0hT>3RMUWpi}_wj0L+BHZ3Iht!_3a)1kTuK+st|%4^9Ag0lxu%n%TvS z+6ERtSdB{h0XXadwUi^51&XA?F>Jv5qR%|Y{9n?dq?@^UgjkkzU-)eB4yz#74$$sk zXQIKx+kXC|-&3U6p8vi(KnZh_UZ|r2dY)R_xd~?}E=#||yzg>>b^l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