commit d945873c344df25c2988fb35e1b3e002c726c209
parent 81cc6e4161d836215cfee615121f2e024779ea02
Author: Eric Davis <edavis@insanum.com>
Date: Tue, 24 Jun 2014 22:07:33 -0700
use same color attributes for the log as that for note contents
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/sncli.py b/sncli.py
@@ -245,7 +245,8 @@ def list_get_note_content(index, tabstop):
for l in self.all_notes[index].note['content'].split('\n'):
lines.append(
urwid.AttrMap(urwid.Text(l.replace('\t', ' ' * tabstop)),
- 'note_content', 'note_content_focus'))
+ 'note_content',
+ 'note_content_focus'))
return lines
def list_get_note_json(index):
@@ -385,8 +386,10 @@ def __init__(self):
f = open(get_logfile())
lines = []
for line in f:
- lines.append(urwid.AttrMap(urwid.Text(line.rstrip()),
- 'default', 'reverse'))
+ lines.append(
+ urwid.AttrMap(urwid.Text(line.rstrip()),
+ 'note_content',
+ 'note_content_focus'))
f.close()
body = urwid.SimpleFocusListWalker(lines)
super(ViewLog, self).__init__(body)
@@ -471,9 +474,6 @@ def keypress(self, size, key):
('default',
self.config.clr_default_fg,
self.config.clr_default_bg ),
- ('reverse',
- 'white',
- 'black' ),
('note_title_day',
self.config.clr_note_title_day_fg,
self.config.clr_note_title_day_bg ),