diff options
author | James Booth <boothj5@gmail.com> | 2016-01-21 00:50:55 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-01-21 00:50:55 +0000 |
commit | adb470c454338fd6e52528c22d44a26eb246732d (patch) | |
tree | b64c8b82726188c43de574b509aea5788291be6e /src/ui/window.c | |
parent | 5bccee93cc0c8c2426d5f5acc462dca15467cb08 (diff) | |
download | profani-tty-adb470c454338fd6e52528c22d44a26eb246732d.tar.gz |
WIP: Add /theme properties command
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 33db89c6..d749ac84 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -1086,6 +1086,7 @@ _win_print(ProfWin *window, const char show_char, int pad_indent, GDateTime *tim if ((flags & NO_DATE) == 0) { if (date_fmt && strlen(date_fmt)) { if ((flags & NO_COLOUR_DATE) == 0) { + wbkgdset(window->layout->win, theme_attrs(THEME_TIME)); wattron(window->layout->win, theme_attrs(THEME_TIME)); } wprintw(window->layout->win, "%s %c ", date_fmt, show_char); @@ -1108,6 +1109,7 @@ _win_print(ProfWin *window, const char show_char, int pad_indent, GDateTime *tim colour = theme_attrs(THEME_RECEIPT_SENT); } + wbkgdset(window->layout->win, colour); wattron(window->layout->win, colour); if (strncmp(message, "/me ", 4) == 0) { wprintw(window->layout->win, "*%s ", from); @@ -1121,8 +1123,10 @@ _win_print(ProfWin *window, const char show_char, int pad_indent, GDateTime *tim if (!me_message) { if (receipt && !receipt->received) { + wbkgdset(window->layout->win, theme_attrs(THEME_RECEIPT_SENT)); wattron(window->layout->win, theme_attrs(THEME_RECEIPT_SENT)); } else { + wbkgdset(window->layout->win, theme_attrs(theme_item)); wattron(window->layout->win, theme_attrs(theme_item)); } } |