diff options
author | C. McEnroe | 2020-02-02 03:27:50 -0500 |
---|---|---|
committer | C. McEnroe | 2020-02-02 03:27:50 -0500 |
commit | 8bb9ea7b7ff2e98bbe629f9f2e63f1dcb70250e3 (patch) | |
tree | 713c9916a5160ba96204844a8fd70799ded19072 /ui.c | |
parent | ec83332e15d31c1ffbb7112ff6743f2a5c815c71 (diff) |
Add idColors
Diffstat (limited to 'ui.c')
-rw-r--r-- | ui.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui.c b/ui.c index 3ae6592..961e448 100644 --- a/ui.c +++ b/ui.c @@ -268,15 +268,15 @@ static void statusUpdate(void) { const struct Window *window; for (num = 0, window = windows.head; window; ++num, window = window->next) { if (!window->unread && window != windows.active) continue; - enum Color color = hash(idNames[window->id]); // FIXME: queries. int unread; char buf[256]; snprintf( buf, sizeof(buf), C"%d%s %d %s %n("C"%02d%d"C"%d) ", - color, (window == windows.active ? V : ""), + idColors[window->id], (window == windows.active ? V : ""), num, idNames[window->id], - &unread, (window->heat > Warm ? White : color), window->unread, - color + &unread, (window->heat > Warm ? White : idColors[window->id]), + window->unread, + idColors[window->id] ); if (!window->unread) buf[unread] = '\0'; styleAdd(status, buf); |