From 1a0e4933bc6dc7e7a56061a80642565b940f6c8e Mon Sep 17 00:00:00 2001 From: Daniel Edgecumbe Date: Wed, 27 Sep 2017 21:16:46 +0100 Subject: [PATCH] [footer] Slight changes to formatting, colour current time --- footer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/footer.py b/footer.py index 89191a2..3d58a74 100644 --- a/footer.py +++ b/footer.py @@ -29,6 +29,7 @@ class FooterView(object): self._pad.clear() CYELLOW = curses.color_pair(5) + CBOLD = curses.A_BOLD CREVERSE = curses.A_REVERSE x = 1 @@ -40,10 +41,10 @@ class FooterView(object): modifier += CREVERSE self._pad.addstr(0, x, first_char, modifier + CYELLOW) self._pad.addstr(0, x+1, rest, modifier) - x += len(mode_string) + 4 + x += len(mode_string) + 5 if self._dt: - self._pad.addstr(0, 81, self._dt.isoformat(timespec="seconds")[:19]) + self._pad.addstr(0, 81, self._dt.isoformat(timespec="seconds")[:19], CYELLOW + CBOLD) self._draw_pad_to_screen()