From f6a3bd15b3b8c3d30abf6e5209e10cff3c4784e0 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Tue, 7 Apr 2015 10:01:18 +1200 Subject: console: All palettes now explicitly set a background colour There's a new option --palette-transparent to turn this off if you want to use your own terminal background. --- libmproxy/console/window.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'libmproxy/console/window.py') diff --git a/libmproxy/console/window.py b/libmproxy/console/window.py index af9da81f..d64e83df 100644 --- a/libmproxy/console/window.py +++ b/libmproxy/console/window.py @@ -1,10 +1,15 @@ import urwid -from . import grideditor, signals, contentview +from . import signals class Window(urwid.Frame): def __init__(self, master, body, header, footer, helpctx): - urwid.Frame.__init__(self, body, header=header, footer=footer) + urwid.Frame.__init__( + self, + urwid.AttrWrap(body, "background"), + header = urwid.AttrWrap(header, "background") if header else None, + footer = urwid.AttrWrap(footer, "background") if footer else None + ) self.master = master self.helpctx = helpctx signals.focus.connect(self.sig_focus) -- cgit v1.2.3