about summary refs log tree commit diff stats
path: root/src/config/theme.c
diff options
context:
space:
mode:
authorPaul Fariello <paul@fariello.eu>2019-06-18 06:23:06 +0200
committerPaul Fariello <paul@fariello.eu>2019-06-20 14:30:45 +0200
commit9482ce616857cc5b954dbeb346febf9bb036e234 (patch)
treea4e659f2626d4ed00272de0e90919cd000bb83b8 /src/config/theme.c
parent44d16e91411da44a945b0ac44c0253c1dac5e5f3 (diff)
downloadprofani-tty-9482ce616857cc5b954dbeb346febf9bb036e234.tar.gz
Set foreground color for untrusted messages
Diffstat (limited to 'src/config/theme.c')
-rw-r--r--src/config/theme.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config/theme.c b/src/config/theme.c
index 4d868dd4..71f31842 100644
--- a/src/config/theme.c
+++ b/src/config/theme.c
@@ -153,6 +153,7 @@ theme_init(const char *const theme_name)
     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"));
+    g_hash_table_insert(defaults, strdup("untrusted"),               strdup("red"));
 
     _load_preferences();
 }
@@ -854,6 +855,7 @@ theme_attrs(theme_item_t attrs)
     case THEME_ROSTER_ROOM_TRIGGER:     _theme_prep_fgnd("roster.room.trigger",     lookup_str, &bold); break;
     case THEME_ROSTER_ROOM_MENTION:     _theme_prep_fgnd("roster.room.mention",     lookup_str, &bold); break;
     case THEME_OCCUPANTS_HEADER:        _theme_prep_fgnd("occupants.header",        lookup_str, &bold); break;
+    case THEME_UNTRUSTED:               _theme_prep_fgnd("untrusted",               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;
     case THEME_GREEN:                   g_string_append(lookup_str, "green");   bold = FALSE;   break;