diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2013-01-31 20:35:39 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2013-03-03 13:48:20 +0000 |
commit | d6865514c96148645279e81c515f78cea6d5abab (patch) | |
tree | 3dbcd9e38fff56706ef797a241390355adb7952c /alot/buffers.py | |
parent | c4c32734ddc5029441e5c8b7dfc9cd32956b5b99 (diff) |
style arrows
Diffstat (limited to 'alot/buffers.py')
-rw-r--r-- | alot/buffers.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/alot/buffers.py b/alot/buffers.py index b3b6f200..47dcad16 100644 --- a/alot/buffers.py +++ b/alot/buffers.py @@ -18,7 +18,7 @@ from alot.widgets.globals import AttachmentWidget from alot.widgets.bufferlist import BufferlineWidget from alot.widgets.search import ThreadlineWidget from alot.widgets.thread import ThreadTree -from alot.foreign.urwidtrees import ArrowTree, TreeBox, NestedTree, CollapsibleArrowTree +from alot.foreign.urwidtrees import ArrowTree, TreeBox, NestedTree class Buffer(object): @@ -323,7 +323,15 @@ class ThreadBuffer(Buffer): return self._tree = ThreadTree(self.thread) - A = ArrowTree(self._tree) + + bars_att = settings.get_theming_attribute('thread', 'arrow_bars') + heads_att = settings.get_theming_attribute('thread', 'arrow_heads') + A = ArrowTree(self._tree, + indent=2, + childbar_offset=0, + arrow_tip_att=heads_att, + arrow_att=bars_att, + ) self._nested_tree =NestedTree(A, interpret_covered=True) self.body = TreeBox(self._nested_tree) self.message_count = self.thread.get_total_messages() |