summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorg Lukas <georg@op-co.de>2020-01-21 22:53:28 +0100
committerGeorg Lukas <georg@op-co.de>2020-01-21 22:53:28 +0100
commit3c5de0a49f71e9e764263a286e8d93cc07cb38b7 (patch)
treee48c629eb629a2853a10e4dd96f12fc1e1b629a3 /plugins
parent612eebb5c33cd4246d8ea9be703dd8e6b90c4045 (diff)
downloadpoezio-3c5de0a49f71e9e764263a286e8d93cc07cb38b7.tar.gz
poezio-3c5de0a49f71e9e764263a286e8d93cc07cb38b7.tar.bz2
poezio-3c5de0a49f71e9e764263a286e8d93cc07cb38b7.tar.xz
poezio-3c5de0a49f71e9e764263a286e8d93cc07cb38b7.zip
invitation: display QR code black-on-white
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/qr.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/qr.py b/plugins/qr.py
index af3d0165..25530248 100755
--- a/plugins/qr.py
+++ b/plugins/qr.py
@@ -34,7 +34,9 @@ class QrWindow(Win):
code.add_data(self.qr)
out = io.StringIO()
code.print_ascii(out, invert=self.inverted)
- self.addstr(" " + self.qr + "\n" + out.getvalue() + " ")
+ self.addstr(" " + self.qr + "\n")
+ self.addstr(out.getvalue(), to_curses_attr((15, 0)))
+ self.addstr(" ")
col = to_curses_attr(get_theme().COLOR_TAB_NORMAL)