diff options
author | Paul Fariello <paul@fariello.eu> | 2019-06-18 06:23:06 +0200 |
---|---|---|
committer | Paul Fariello <paul@fariello.eu> | 2019-06-20 14:30:45 +0200 |
commit | 9482ce616857cc5b954dbeb346febf9bb036e234 (patch) | |
tree | a4e659f2626d4ed00272de0e90919cd000bb83b8 /src/config | |
parent | 44d16e91411da44a945b0ac44c0253c1dac5e5f3 (diff) | |
download | profani-tty-9482ce616857cc5b954dbeb346febf9bb036e234.tar.gz |
Set foreground color for untrusted messages
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/theme.c | 2 | ||||
-rw-r--r-- | src/config/theme.h | 2 |
2 files changed, 3 insertions, 1 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; diff --git a/src/config/theme.h b/src/config/theme.h index f4e575b9..5f68dd0f 100644 --- a/src/config/theme.h +++ b/src/config/theme.h @@ -117,6 +117,7 @@ typedef enum { THEME_ROSTER_ROOM_TRIGGER, THEME_ROSTER_ROOM_MENTION, THEME_RECEIPT_SENT, + THEME_UNTRUSTED, THEME_NONE, THEME_WHITE, THEME_WHITE_BOLD, @@ -134,7 +135,6 @@ typedef enum { THEME_BLACK_BOLD, THEME_MAGENTA, THEME_MAGENTA_BOLD, - THEME_NO_TRUST, } theme_item_t; void theme_init(const char *const theme_name); |