summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-07-05 21:15:11 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2012-07-05 21:15:11 +0100
commita011bb7391ade12c2662e344bcbe1b866bd1e3fb (patch)
tree996da35b329be4b05044a44bc88eabde120f0ffc /alot
parent601a2a735ad32d5dd910f1d2f20f8b7b15fb1f58 (diff)
use widthtuple in theme spec and default theme
Diffstat (limited to 'alot')
-rw-r--r--alot/defaults/default.theme3
-rw-r--r--alot/defaults/theme.spec6
2 files changed, 5 insertions, 4 deletions
diff --git a/alot/defaults/default.theme b/alot/defaults/default.theme
index 253464a0..e66b5c5d 100644
--- a/alot/defaults/default.theme
+++ b/alot/defaults/default.theme
@@ -37,15 +37,18 @@
[[[date]]]
normal = 'default','','light gray','default','g58','default'
focus = 'standout','','light gray','dark gray','g89','#68a'
+ width = 'fit',10,10
[[[mailcount]]]
normal = 'default','','light gray','default','light gray','default'
focus = 'standout','','light gray','dark gray','g89','#68a'
+ width = 'fit',5,5
[[[tags]]]
normal = 'bold','','brown','default','#a86','default'
focus = 'standout','','yellow,bold','dark gray','#ff8','#68a'
[[[authors]]]
normal = 'default,underline','','dark green','default','#6d6','default'
focus = 'standout','','dark green,bold','dark gray','#8f6','#68a'
+ width = 'fit',0,30
[[[subject]]]
normal = 'default','','light gray','default','g58','default'
focus = 'standout','','light gray','dark gray','g89','#68a'
diff --git a/alot/defaults/theme.spec b/alot/defaults/theme.spec
index 3051d0ea..825c2060 100644
--- a/alot/defaults/theme.spec
+++ b/alot/defaults/theme.spec
@@ -27,8 +27,7 @@
[[[__many__]]]
normal = attrtriple
focus = attrtriple
- width_fixed = integer
- width_weight = integer
+ width = widthtuple(default=None)
alignment = align(default='right')
[[__many__]]
normal = attrtriple
@@ -37,8 +36,7 @@
[[[__many__]]]
normal = attrtriple
focus = attrtriple
- width_fixed = integer
- width_weight = integer
+ width = widthtuple(default=None)
alignment = align(default='right')
[thread]
attachment = attrtriple