diff --git a/gertty/app.py b/gertty/app.py index d726142..66f4d56 100644 --- a/gertty/app.py +++ b/gertty/app.py @@ -52,6 +52,8 @@ palette=[('focused', 'default,standout', ''), ('draft-comment', 'default', 'dark gray'), ('comment', 'light gray', 'dark gray'), ('comment-name', 'white', 'dark gray'), + ('line-number', 'dark gray', ''), + ('focused-line-number', 'dark gray,standout', ''), # Change view ('change-data', 'light cyan', ''), ('change-header', 'light blue', ''), diff --git a/gertty/view/diff.py b/gertty/view/diff.py index 5df436b..64809f4 100644 --- a/gertty/view/diff.py +++ b/gertty/view/diff.py @@ -86,7 +86,7 @@ class DiffLine(urwid.Button): ln = '' else: ln = str(ln) - ln_col = urwid.Text(ln) + ln_col = urwid.Text(('line-number', ln)) ln_col.set_wrap_mode('clip') line_col = urwid.Text(line) line_col.set_wrap_mode('clip') @@ -100,6 +100,7 @@ class DiffLine(urwid.Button): 'removed-line': 'focused-removed-line', 'removed-word': 'focused-removed-word', 'nonexistent': 'focused-nonexistent', + 'line-number': 'focused-line-number', } self._w = urwid.AttrMap(col, None, focus_map=map)