summaryrefslogtreecommitdiff
path: root/alot/widgets.py
diff options
context:
space:
mode:
authordtk <dtk@gmx.de>2011-12-28 12:36:34 +0100
committerdtk <dtk@gmx.de>2012-01-02 18:17:04 +0100
commit26db3e5c9891e95b963d1ecd3fe455039eb1855f (patch)
treeb60fb8b7e17ef0036c0b0e1970395c25b6337807 /alot/widgets.py
parent411142db3c718f467759f234a5e767608d5d5465 (diff)
Don't fallback to lower priority tag themeing
So far if the config provides no themeing for a threadline component for a given tag, the following highlight tags are checked. Only if no themeing has been provided for any configured tag, the untagged theme will be used. This leads to themes for different highlight tags being mixed if a higher priority tag doesn't define theming for a component a lower priority tag does. This commit disables fall-through to lower priority themeing in order to avoid mixing of themes. Therefore a missing themeing for the top priority highlight tag immediately triggers fallback to the themeing of the parent option. Cf issue #25. Closes #211.
Diffstat (limited to 'alot/widgets.py')
-rw-r--r--alot/widgets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/widgets.py b/alot/widgets.py
index 1b04591a..2b12a550 100644
--- a/alot/widgets.py
+++ b/alot/widgets.py
@@ -195,7 +195,7 @@ class ThreadlineWidget(urwid.AttrMap):
tag_theme = theme + '_{tag}'.format(tag=tag)
if config.has_theming(tag_theme):
theme = tag_theme
- break
+ break
return theme