Improve color blindness handling

Rename some things and use a swtich instead of if.
This commit is contained in:
Michael Vetter
2019-12-12 14:23:07 +01:00
parent 2750194279
commit 3258211f27
3 changed files with 16 additions and 12 deletions

View File

@@ -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);