about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-09-10 11:20:03 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-09-10 11:22:30 +0200
commitaa0f497975db0ca60d5bfd52904bfc95758fc28e (patch)
tree3e3967792c4db684d0308d99d5b4b81e4a118d64 /src/config
parent09b6fc9aaa99b73b2eb58e4d6ea1b6a56a07a189 (diff)
downloadprofani-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/config')
-rw-r--r--src/config/theme.c1
-rw-r--r--src/config/theme.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/config/theme.c b/src/config/theme.c
index 15bb6c8e..ac077b27 100644
--- a/src/config/theme.c
+++ b/src/config/theme.c
@@ -677,6 +677,7 @@ theme_attrs(theme_item_t attrs)
     // get forground colour
     switch (attrs) {
     case THEME_TEXT:                    _theme_prep_fgnd("main.text",               lookup_str, &bold); break;
+    case THEME_TEXT_HISTORY:            _theme_prep_fgnd("main.text.history",       lookup_str, &bold); break;
     case THEME_TEXT_ME:                 _theme_prep_fgnd("main.text.me",            lookup_str, &bold); break;
     case THEME_TEXT_THEM:               _theme_prep_fgnd("main.text.them",          lookup_str, &bold); break;
     case THEME_SPLASH:                  _theme_prep_fgnd("main.splash",             lookup_str, &bold); break;
diff --git a/src/config/theme.h b/src/config/theme.h
index 5f68dd0f..cdf6233a 100644
--- a/src/config/theme.h
+++ b/src/config/theme.h
@@ -135,6 +135,7 @@ typedef enum {
     THEME_BLACK_BOLD,
     THEME_MAGENTA,
     THEME_MAGENTA_BOLD,
+    THEME_TEXT_HISTORY,
 } theme_item_t;
 
 void theme_init(const char *const theme_name);