summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorpazz <patricktotzke@gmail.com>2011-07-09 21:14:15 +0100
committerpazz <patricktotzke@gmail.com>2011-07-09 21:14:15 +0100
commit78b9fff655b3fd7daa1eed60bde60b842eb33203 (patch)
tree3a0fd52fef21cf9bb7352a3e0e06fe196080c6d9 /alot
parente510f9161465c5cc8b97a5e813ecc108aa156681 (diff)
pallete entry for attachment widget
Diffstat (limited to 'alot')
-rw-r--r--alot/settings.py5
-rw-r--r--alot/widgets.py3
2 files changed, 7 insertions, 1 deletions
diff --git a/alot/settings.py b/alot/settings.py
index ac4a8e8f..35d554bb 100644
--- a/alot/settings.py
+++ b/alot/settings.py
@@ -51,6 +51,8 @@ DEFAULTS = {
'footer_fg': 'light green',
'header_bg': 'dark blue',
'header_fg': 'white',
+ 'message_attachment_bg': 'dark gray',
+ 'message_attachment_fg': 'light gray',
'message_body_bg': 'default',
'message_body_fg': 'light gray',
'message_header_bg': 'dark gray',
@@ -118,6 +120,7 @@ DEFAULTS = {
'messagesummary_even': '',
'messagesummary_odd': '',
'messagesummary_focus': 'standout',
+ 'message_attachment': 'default',
'message_header': 'default',
'message_header_key': 'default',
'message_header_value': 'default',
@@ -139,6 +142,8 @@ DEFAULTS = {
'footer_fg': 'white',
'header_bg': 'dark blue',
'header_fg': 'white',
+ 'message_attachment_bg': 'dark gray',
+ 'message_attachment_fg': 'light gray',
'message_body_bg': 'default',
'message_body_fg': 'light gray',
'message_header_bg': 'dark gray',
diff --git a/alot/widgets.py b/alot/widgets.py
index abfbb181..ebdfbb5e 100644
--- a/alot/widgets.py
+++ b/alot/widgets.py
@@ -513,7 +513,8 @@ class MessageBodyWidget(urwid.AttrMap):
class AttachmentWidget(urwid.WidgetWrap):
def __init__(self, attachment):
self.attachment = attachment
- urwid.WidgetWrap.__init__(self, urwid.Text(unicode(attachment)))
+ widget = urwid.AttrMap(urwid.Text(unicode(attachment)), 'message_attachment')
+ urwid.WidgetWrap.__init__(self, widget)
def selectable(self):
return True