From 3c5de0a49f71e9e764263a286e8d93cc07cb38b7 Mon Sep 17 00:00:00 2001 From: Georg Lukas Date: Tue, 21 Jan 2020 22:53:28 +0100 Subject: invitation: display QR code black-on-white --- plugins/qr.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins') 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) -- cgit v1.2.3