Commit 58079b25 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Merge pull request #124 from mruwek/marked_palette_entry

Use special color-palette entry for 'marked' items
parents b7059d7f f9e1606d
......@@ -179,6 +179,7 @@ class UIApplication(CLIApplicationBase):
('link', '', '', '', link_color, ''),
('link_focus', '', 'light gray', '', link_color, None),
('default_focus', 'black', 'light gray'),
('marked', '', 'light blue'),
]
for C in ascii_uppercase:
......
......@@ -135,7 +135,14 @@ class TodoWidget(urwid.WidgetWrap):
return True
def mark(self):
self.widget.set_attr_map({None: _markup(self.todo, True)})
attr_map = {
None: 'marked',
'link': 'marked',
'context': 'marked',
'project': 'marked',
'metadata': 'marked',
}
self.widget.set_attr_map(attr_map)
def unmark(self):
self.widget.set_attr_map({None: _markup(self.todo, False)})
self.widget.set_attr_map(_markup(self.todo, False))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment