diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-04-08 22:59:41 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-04-08 22:59:41 +0100 |
commit | ed66ee52906b374b5f30d4d05996c80134f92892 (patch) | |
tree | 696dbaab4187bb627789661ef39a62c6df63b5f9 /alot/ui.py | |
parent | 75bdba3e92b01653b3d77c963072fe9c26369cb7 (diff) |
use global body theming attribute
issue #430
Diffstat (limited to 'alot/ui.py')
-rw-r--r-- | alot/ui.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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() |