mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-23 15:26:22 +00:00
Add option to hilight unread rooms in /wins command
In the theme we can now set `cmd.wins.unread` to hvae a special color for the lines of the `/wins` output that have unread messages. Fix https://github.com/profanity-im/profanity/issues/895
This commit is contained in:
@@ -498,7 +498,11 @@ cons_show_wins(gboolean unread)
|
||||
|
||||
GSList *curr = window_strings;
|
||||
while (curr) {
|
||||
win_println(console, THEME_DEFAULT, '-', "%s", curr->data);
|
||||
if (g_strstr_len(curr->data, strlen(curr->data), " unread") > 0) {
|
||||
win_println(console, THEME_CMD_WINS_UNREAD, '-', "%s", curr->data);
|
||||
} else {
|
||||
win_println(console, THEME_DEFAULT, '-', "%s", curr->data);
|
||||
}
|
||||
curr = g_slist_next(curr);
|
||||
}
|
||||
g_slist_free_full(window_strings, free);
|
||||
|
||||
Reference in New Issue
Block a user