diff options
author | June McEnroe <june@causal.agency> | 2019-02-25 16:02:41 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-02-25 16:02:41 -0500 |
commit | 6b97c597569eb960e3696e7667e553d05238f3e9 (patch) | |
tree | 17bd5cf51cc0f580b9406e90ce5bdc1e4daadfd4 /ui.c | |
parent | Remove tag X macros again (diff) | |
download | catgirl-6b97c597569eb960e3696e7667e553d05238f3e9.tar.gz catgirl-6b97c597569eb960e3696e7667e553d05238f3e9.zip |
Add color to tags
Diffstat (limited to '')
-rw-r--r-- | ui.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ui.c b/ui.c index ab519b6..ffb2916 100644 --- a/ui.c +++ b/ui.c @@ -335,10 +335,11 @@ static void uiStatus(void) { int unread; wchar_t *str; int len = aswprintf( - &str, L"%c %d %s %n(\3%02d%u\3) ", - (windows.active == win ? IRCReverse : IRCReset), + &str, L"%c\3%d %d %s %n(\3%02d%u\3%d) ", + (windows.active == win ? IRCReverse : IRCReset), win->tag.color, num, win->tag.name, - &unread, (win->hot ? IRCYellow : IRCDefault), win->unread + &unread, (win->hot ? IRCWhite : win->tag.color), win->unread, + win->tag.color ); if (len < 0) err(EX_OSERR, "aswprintf"); if (!win->unread) str[unread] = L'\0'; |