diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-09-10 11:20:03 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-09-10 11:22:30 +0200 |
commit | aa0f497975db0ca60d5bfd52904bfc95758fc28e (patch) | |
tree | 3e3967792c4db684d0308d99d5b4b81e4a118d64 /src/ui/window.c | |
parent | 09b6fc9aaa99b73b2eb58e4d6ea1b6a56a07a189 (diff) | |
download | profani-tty-aa0f497975db0ca60d5bfd52904bfc95758fc28e.tar.gz |
Allow colorization of history messages
History was always printed with `THEME_DEFAULT` we now use `THEME_TEXT_HISTORY` which is accesible in theme files via `main.text.history`. Fix https://github.com/profanity-im/profanity/issues/1170
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 80074fc3..49164769 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -1155,9 +1155,9 @@ win_print_history(ProfWin *window, GDateTime *timestamp, const char *const messa GString *fmt_msg = g_string_new(NULL); g_string_vprintf(fmt_msg, message, arg); - buffer_append(window->layout->buffer, '-', 0, timestamp, NO_COLOUR_DATE, THEME_DEFAULT, "", fmt_msg->str, NULL); + buffer_append(window->layout->buffer, '-', 0, timestamp, 0, THEME_TEXT_HISTORY, "", fmt_msg->str, NULL); + _win_print(window, '-', 0, timestamp, 0, THEME_TEXT_HISTORY, "", fmt_msg->str, NULL); - _win_print(window, '-', 0, timestamp, NO_COLOUR_DATE, THEME_DEFAULT, "", fmt_msg->str, NULL); inp_nonblocking(TRUE); g_date_time_unref(timestamp); |