electrum

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

commit 50ba1faae4ca9570948aa1522e3221f6f6524aa6
parent 59f236c5214d786e6607f8f7d5d88acbc90ed685
Author: ThomasV <thomasv1@gmx.de>
Date:   Mon, 27 May 2013 02:24:22 -0700

Merge pull request #221 from EnigmaCurry/fix-qr-margin

Fixes the QR code widget to include a 10px margin to offset the widget on dark theme background
Diffstat:
Mgui/qrcodewidget.py | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/gui/qrcodewidget.py b/gui/qrcodewidget.py @@ -62,6 +62,11 @@ class QRCodeWidget(QWidget): left = (r.width() - size)/2 top = (r.height() - size)/2 + # Make a white margin around the QR in case of dark theme use: + margin = 10 + qp.setBrush(white) + qp.drawRect(left-margin, top-margin, size+(margin*2), size+(margin*2)) + for r in range(k): for c in range(k): if self.qr.isDark(r, c):