summaryrefslogtreecommitdiff
path: root/alot/defaults/theme.spec
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-07-07 13:52:42 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2012-07-07 14:32:43 +0100
commit5ebb57ca4f408d1d098caa9fac2c012f824b8621 (patch)
treea86fefa872ac2617da9c8dc89915552665d986b2 /alot/defaults/theme.spec
parenta6f2b93ea477f13d96eaf40fb4dd7cb7b9c97efc (diff)
implement selective threadline theming aka. 'highlighting'
This allows the user to specify alternate 'threadline.*' sections for searchmode: They specify the difference to the default threadline theming. Each of those can contain fields 'query' and 'tagged_with' to determine if they apply: We go through all those threadline sections top down, for each of them check if the conditions query (thread matches querystring) and 'tagged_with' (culmulative tags of messages in thread contain those listed). The first section that matches wins, default is to section 'threadline'.
Diffstat (limited to 'alot/defaults/theme.spec')
-rw-r--r--alot/defaults/theme.spec10
1 files changed, 6 insertions, 4 deletions
diff --git a/alot/defaults/theme.spec b/alot/defaults/theme.spec
index 3f8d1108..f5ce8341 100644
--- a/alot/defaults/theme.spec
+++ b/alot/defaults/theme.spec
@@ -30,12 +30,14 @@
width = widthtuple(default=None)
alignment = align(default='right')
[[__many__]]
- normal = attrtriple
- focus = attrtriple
+ normal = attrtriple(default=None)
+ focus = attrtriple(default=None)
parts = string_list(default=None)
+ query = string(default=None)
+ tagged_with = force_list(default=None)
[[[__many__]]]
- normal = attrtriple
- focus = attrtriple
+ normal = attrtriple(default=None)
+ focus = attrtriple(default=None)
width = widthtuple(default=None)
alignment = align(default='right')
[thread]