CPC G06F 3/04842 (2013.01) [G06F 3/04812 (2013.01); G06F 3/04845 (2013.01)] | 20 Claims |
1. A method of determining a contrast of colors displayed by a digital user interface, comprising:
providing an application that executes on an electronic device, wherein the application includes a compliance module, and wherein the compliance module includes an active mode and an inactive mode, and wherein the active mode generates a popup graphical element in response to a predetermined user input with respect to a selected graphical element of the application;
activating the compliance module into the active mode in response to a user input;
receiving the predetermined user input on the selected graphical element of the application;
determining, by the compliance module, based on the active mode and receipt of the predetermined user input:
first color data associated with a background of the selected graphical element of the application;
second color data associated with a text string within the selected graphical element;
a luminosity associated with the first color data and a luminosity associated with the second color data; and
that the luminosity associated with the first color data is greater than the luminosity associated with the second color data;
calculating, by the compliance module, a contrast ratio of a color represented by the first color data to a color represented by the second color data based on a quotient of the luminosity associated with the first color data divided by the luminosity associated with the second color data; and
displaying, at the digital user interface of the electronic device and via the popup graphical element, the calculated contrast ratio.
|