tMerge pull request #221 from EnigmaCurry/fix-qr-margin - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 50ba1faae4ca9570948aa1522e3221f6f6524aa6 DIR parent 59f236c5214d786e6607f8f7d5d88acbc90ed685 HTML 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: M gui/qrcodewidget.py | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) --- DIR diff --git a/gui/qrcodewidget.py b/gui/qrcodewidget.py t@@ -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):