mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 01:36:21 +00:00
Implement Color Vision Deficiencies setting
Implement settings for redgreen and blue blindness. Regards https://github.com/profanity-im/profanity/issues/1191
This commit is contained in:
@@ -1453,9 +1453,11 @@ _win_print(ProfWin *window, const char show_char, int pad_indent, GDateTime *tim
|
||||
colour = theme_attrs(THEME_THEM);
|
||||
}
|
||||
|
||||
if (prefs_get_boolean(PREF_COLOR_NICK)) {
|
||||
char *color_pref = prefs_get_string(PREF_COLOR_NICK);
|
||||
if (color_pref != NULL && (strcmp(color_pref, "false") != 0)) {
|
||||
colour = theme_hash_attrs(from);
|
||||
}
|
||||
prefs_free_string(color_pref);
|
||||
|
||||
if (flags & NO_COLOUR_FROM) {
|
||||
colour = 0;
|
||||
|
||||
Reference in New Issue
Block a user