1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 14:22:05 +01:00

Merge pull request #220 from fuentesj11/update-docs2

Update/Edit caps.md and consistent_colors.md
This commit is contained in:
Florian Schmaus 2018-04-04 14:45:33 +02:00 committed by GitHub
commit 2756759f67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@ are determined with the help of the Service Discovery Protocol
**Usage** **Usage**
Entity Capabilities work silenty in background when enabled. If the remote Entity Capabilities work silently in the background when enabled. If the remote
XMPP entity does not support XEP-0115 but XEP-0030 then XEP-0030 mechanisms XMPP entity does not support XEP-0115 but XEP-0030 then XEP-0030 mechanisms
are transparently used. You can enable or disable Entity Capabilities by using are transparently used. You can enable or disable Entity Capabilities by using
_**EntityCapsManager**_. _**EntityCapsManager**_.

View file

@ -10,14 +10,14 @@ color on all platforms to provide a consistent user experience.
The utility class `ConsistentColor` allows the generation of colors to a given The utility class `ConsistentColor` allows the generation of colors to a given
string following the specification of [XEP-0392](https://xmpp.org/extensions/xep-0392.html). string following the specification of [XEP-0392](https://xmpp.org/extensions/xep-0392.html).
##Usage ## Usage
To generate a consistent color for a given string, call To generate a consistent color for a given string, call
``` ```
float[] rgb = ConsistentColor.RGBFrom(input); float[] rgb = ConsistentColor.RGBFrom(input);
``` ```
The resulting float array contains values for RGB in the range of 0 to 1. The resulting float array contains values for RGB in the range of 0 to 1.
##Color Deficiency Corrections ## Color Deficiency Corrections
Some users might suffer from color vision deficiencies. To compensate those deficiencies, Some users might suffer from color vision deficiencies. To compensate those deficiencies,
the API allows for color correction. The color correction mode is a static value, which can be changed at any time. the API allows for color correction. The color correction mode is a static value, which can be changed at any time.
@ -33,5 +33,5 @@ ConsistentColor.activateBlueBlindnessCorrection();
To deactivate color vision deficiency correction, call To deactivate color vision deficiency correction, call
``` ```
ConsistenColor.deactivateDeficiencyCorrection(); ConsistentColor.deactivateDeficiencyCorrection();
``` ```