about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-02-13 22:46:25 +0000
committerJames Booth <boothj5@gmail.com>2016-02-13 22:46:25 +0000
commit1a3dc91e119f029807a0e7156a869ce2ffcff0ed (patch)
treee195529f648c8c095b24564cf3ebee2623238e5b /src/config
parent2f82f50a352ebdbe34c1712156766e0476e19e6c (diff)
downloadprofani-tty-1a3dc91e119f029807a0e7156a869ce2ffcff0ed.tar.gz
Highlight room trigger terms
Diffstat (limited to 'src/config')
-rw-r--r--src/config/theme.c2
-rw-r--r--src/config/theme.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/config/theme.c b/src/config/theme.c
index 414bf2b4..d221bd3f 100644
--- a/src/config/theme.c
+++ b/src/config/theme.c
@@ -109,6 +109,7 @@ theme_init(const char *const theme_name)
     g_hash_table_insert(defaults, strdup("roommention"),             strdup("yellow"));
     g_hash_table_insert(defaults, strdup("roommention.term"),        strdup("yellow"));
     g_hash_table_insert(defaults, strdup("roomtrigger"),             strdup("yellow"));
+    g_hash_table_insert(defaults, strdup("roomtrigger.term"),        strdup("yellow"));
     g_hash_table_insert(defaults, strdup("online"),                  strdup("green"));
     g_hash_table_insert(defaults, strdup("offline"),                 strdup("red"));
     g_hash_table_insert(defaults, strdup("away"),                    strdup("cyan"));
@@ -754,6 +755,7 @@ theme_attrs(theme_item_t attrs)
     case THEME_ROOMMENTION:             _theme_prep_fgnd("roommention",             lookup_str, &bold); break;
     case THEME_ROOMMENTION_TERM:        _theme_prep_fgnd("roommention.term",        lookup_str, &bold); break;
     case THEME_ROOMTRIGGER:             _theme_prep_fgnd("roomtrigger",             lookup_str, &bold); break;
+    case THEME_ROOMTRIGGER_TERM:        _theme_prep_fgnd("roomtrigger.term",        lookup_str, &bold); break;
     case THEME_ONLINE:                  _theme_prep_fgnd("online",                  lookup_str, &bold); break;
     case THEME_OFFLINE:                 _theme_prep_fgnd("offline",                 lookup_str, &bold); break;
     case THEME_AWAY:                    _theme_prep_fgnd("away",                    lookup_str, &bold); break;
diff --git a/src/config/theme.h b/src/config/theme.h
index a90fa360..6ea369d9 100644
--- a/src/config/theme.h
+++ b/src/config/theme.h
@@ -72,6 +72,7 @@ typedef enum {
     THEME_ROOMMENTION,
     THEME_ROOMMENTION_TERM,
     THEME_ROOMTRIGGER,
+    THEME_ROOMTRIGGER_TERM,
     THEME_ONLINE,
     THEME_OFFLINE,
     THEME_AWAY,