From ed66ee52906b374b5f30d4d05996c80134f92892 Mon Sep 17 00:00:00 2001 From: Patrick Totzke Date: Sun, 8 Apr 2012 22:59:41 +0100 Subject: use global body theming attribute issue #430 --- alot/ui.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'alot') diff --git a/alot/ui.py b/alot/ui.py index 3c43f3a4..cf339499 100644 --- a/alot/ui.py +++ b/alot/ui.py @@ -84,8 +84,10 @@ class UI(object): colourmode = int(settings.get('colourmode')) logging.info('setup gui in %d colours' % colourmode) + global_att = settings.get_theming_attribute('global', 'body') self.mainframe = urwid.Frame(urwid.SolidFill()) - self.inputwrap = InputWrap(self, self.mainframe) + self.mainframe_themed = urwid.AttrMap(self.mainframe, global_att) + self.inputwrap = InputWrap(self, self.mainframe_themed) self.mainloop = urwid.MainLoop(self.inputwrap, handle_mouse=False, event_loop=urwid.TwistedEventLoop(), @@ -227,7 +229,7 @@ class UI(object): else: if self.current_buffer != buf: self.current_buffer = buf - self.inputwrap.set_root(self.mainframe) + self.inputwrap.set_root(self.mainframe_themed) self.mode = buf.modename if isinstance(self.current_buffer, BufferlistBuffer): self.current_buffer.rebuild() -- cgit v1.2.3