about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-01-25 00:19:26 +0000
committerJames Booth <boothj5@gmail.com>2016-01-25 00:19:26 +0000
commit0ae975c27f2b5f9a47a7434138c0ae328b06a7a6 (patch)
treeff5e6e054145d06bd0f855b94f21f67740dcc6a6 /src/config
parentb6e9a09c64ca4438aa066759caf9a4008edadd46 (diff)
downloadprofani-tty-0ae975c27f2b5f9a47a7434138c0ae328b06a7a6.tar.gz
Added themes for roster room mention and triggers
closes #718
Diffstat (limited to 'src/config')
-rw-r--r--src/config/theme.c4
-rw-r--r--src/config/theme.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/config/theme.c b/src/config/theme.c
index 0e790eb2..10bbb0af 100644
--- a/src/config/theme.c
+++ b/src/config/theme.c
@@ -142,6 +142,8 @@ theme_init(const char *const theme_name)
     g_hash_table_insert(defaults, strdup("roster.xa.unread"),        strdup("cyan"));
     g_hash_table_insert(defaults, strdup("roster.room"),             strdup("green"));
     g_hash_table_insert(defaults, strdup("roster.room.unread"),      strdup("green"));
+    g_hash_table_insert(defaults, strdup("roster.room.trigger"),     strdup("green"));
+    g_hash_table_insert(defaults, strdup("roster.room.mention"),     strdup("green"));
     g_hash_table_insert(defaults, strdup("occupants.header"),        strdup("yellow"));
 }
 
@@ -765,6 +767,8 @@ theme_attrs(theme_item_t attrs)
     case THEME_ROSTER_XA_UNREAD:        _theme_prep_fgnd("roster.xa.unread",        "cyan",     lookup_str, &bold); break;
     case THEME_ROSTER_ROOM:             _theme_prep_fgnd("roster.room",             "green",    lookup_str, &bold); break;
     case THEME_ROSTER_ROOM_UNREAD:      _theme_prep_fgnd("roster.room.unread",      "green",    lookup_str, &bold); break;
+    case THEME_ROSTER_ROOM_TRIGGER:     _theme_prep_fgnd("roster.room.trigger",     "green",    lookup_str, &bold); break;
+    case THEME_ROSTER_ROOM_MENTION:     _theme_prep_fgnd("roster.room.mention",     "green",    lookup_str, &bold); break;
     case THEME_OCCUPANTS_HEADER:        _theme_prep_fgnd("occupants.header",        "yellow",   lookup_str, &bold); break;
     case THEME_WHITE:                   g_string_append(lookup_str, "white");   bold = FALSE;   break;
     case THEME_WHITE_BOLD:              g_string_append(lookup_str, "white");   bold = TRUE;    break;
diff --git a/src/config/theme.h b/src/config/theme.h
index c26b84f1..e6a72dde 100644
--- a/src/config/theme.h
+++ b/src/config/theme.h
@@ -106,6 +106,8 @@ typedef enum {
     THEME_ROSTER_XA_UNREAD,
     THEME_ROSTER_ROOM,
     THEME_ROSTER_ROOM_UNREAD,
+    THEME_ROSTER_ROOM_TRIGGER,
+    THEME_ROSTER_ROOM_MENTION,
     THEME_RECEIPT_SENT,
     THEME_NONE,
     THEME_WHITE,