mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-27 06:46:21 +00:00
Improve color blindness handling
Rename some things and use a swtich instead of if.
This commit is contained in:
@@ -677,9 +677,9 @@ theme_hash_attrs(const char *str)
|
||||
|
||||
char *color_pref = prefs_get_string(PREF_COLOR_NICK);
|
||||
if (strcmp(color_pref, "redgreen") == 0) {
|
||||
profile = COLOR_PROFILE_REDGREEN;
|
||||
profile = COLOR_PROFILE_REDGREEN_BLINDNESS;
|
||||
} else if (strcmp(color_pref, "blue") == 0) {
|
||||
profile = COLOR_PROFILE_BLUE;
|
||||
profile = COLOR_PROFILE_BLUE_BLINDNESS;
|
||||
}
|
||||
prefs_free_string(color_pref);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user