summaryrefslogtreecommitdiff
path: root/alot/ui.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-04-08 22:59:41 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2012-04-08 22:59:41 +0100
commited66ee52906b374b5f30d4d05996c80134f92892 (patch)
tree696dbaab4187bb627789661ef39a62c6df63b5f9 /alot/ui.py
parent75bdba3e92b01653b3d77c963072fe9c26369cb7 (diff)
use global body theming attribute
issue #430
Diffstat (limited to 'alot/ui.py')
-rw-r--r--alot/ui.py6
1 files changed, 4 insertions, 2 deletions
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()