summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2013-03-02 22:34:18 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2013-03-03 13:49:45 +0000
commit4ced657d598ceab30806a9cd1095766a54492fb9 (patch)
tree6d82b7af61cd1118dab3979cef73fdb73fb647c2 /alot
parent561cea3d0801a0e27e08f867ff20801e91ac118f (diff)
introduce new themable thread.body_focus for focussed body text lines
Diffstat (limited to 'alot')
-rw-r--r--alot/defaults/default.theme1
-rw-r--r--alot/defaults/theme.spec1
-rw-r--r--alot/settings/theme.py3
3 files changed, 4 insertions, 1 deletions
diff --git a/alot/defaults/default.theme b/alot/defaults/default.theme
index 56773288..473bc2a5 100644
--- a/alot/defaults/default.theme
+++ b/alot/defaults/default.theme
@@ -30,6 +30,7 @@
attachment = 'default','','light gray','dark gray','light gray','dark gray'
attachment_focus = 'underline','','light gray','light green','light gray','light green'
body = 'default','','light gray','default','light gray','default'
+ body_focus = 'default','','light gray','default','white','default'
header = 'default','','white','dark gray','white','dark gray'
header_key = 'default','','white','dark gray','white','dark gray'
header_value = 'default','','light gray','dark gray','light gray','dark gray'
diff --git a/alot/defaults/theme.spec b/alot/defaults/theme.spec
index 05df2b88..ab237484 100644
--- a/alot/defaults/theme.spec
+++ b/alot/defaults/theme.spec
@@ -51,6 +51,7 @@
attachment = attrtriple
attachment_focus = attrtriple
body = attrtriple
+ body_focus = attrtriple(default=None)
header = attrtriple
header_key = attrtriple
header_value = attrtriple
diff --git a/alot/settings/theme.py b/alot/settings/theme.py
index 993c06b2..0edf09e2 100644
--- a/alot/settings/theme.py
+++ b/alot/settings/theme.py
@@ -11,7 +11,7 @@ from checks import force_list
from errors import ConfigError
DEFAULTSPATH = os.path.join(os.path.dirname(__file__), '..', 'defaults')
-
+DUMMYDEFAULT = ('default',) * 6
class Theme(object):
"""Colour theme"""
@@ -57,6 +57,7 @@ class Theme(object):
thmble = self._config[mode][name]
if part is not None:
thmble = thmble[part]
+ thmble = thmble or DUMMYDEFAULT
return thmble[self._colours.index(colourmode)]
def get_threadline_theming(self, thread, colourmode):