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:
Michael Vetter
2019-12-12 11:07:11 +01:00
parent 136f504d5e
commit 2750194279
8 changed files with 102 additions and 16 deletions

View File

@@ -2302,12 +2302,15 @@ static struct cmd_t command_defs[] =
CMD_TAGS(
CMD_TAG_UI)
CMD_SYN(
"/color on|off")
"/color on|off|redgreen|blue")
CMD_DESC(
"Settings for consistent color generation for nicks (XEP-0392).")
"Settings for consistent color generation for nicks (XEP-0392). Including corrections for Color Vision Deficiencies")
CMD_ARGS(
{ "on|off", "Enable or disable nick colorization for MUC nicks." })
CMD_NOEXAMPLES
{ "on|off|redgreen|blue", "Enable or disable nick colorization for MUC nicks. 'redgreen' is for people with red/green blindess and 'blue' for people with blue blindness."})
CMD_EXAMPLES(
"/color off",
"/color on",
"/color blue")
},
};