ThePacielloGroup / CCAe

The Colour Contrast Analyser (CCA) helps you determine the legibility of text and the contrast of visual elements, such as graphical controls and visual indicators.
http://www.paciellogroup.com/resources/contrastanalyser/
GNU General Public License v3.0
475 stars 106 forks source link

Color Contrast Ratio not updated correctly #277

Closed OLLI-S closed 1 year ago

OLLI-S commented 1 year ago

Describe the bug I start CCA 3.2.0 portable and there are the default color values (#000000 and #FFFFFF) shown.

image

In a screenshot I select the foreground color with the color picker (color #FEFEFE), then the Color Contrast Ratio of 1:1 is shown (as expected):

image

Then I select the background color with the color picker (color #FE631E) and the Color Contrast Ratio of 1:1 is still shown (this is a bug):

image

If I select afterwards a black background color (#000000) using the color picker, the Color Contrast Ratio of 20.8:1 is shown (as expected):

image

If I select afterwards again the orange background color (#FE631E) then the Color Contrast Ratio of 20.8:1 is still shown (this is a bug):

image

When I do the same with a darker orange background color (#D14520), then the Color Contrast Ratio of 4.5:1 is shown (what is correct):

image

The problem occurs only, when the background color is #FE631E.

Desktop (please complete the following information):

OLLI-S commented 1 year ago

This problem also occurs, when I start CCA, enter (paste) the value FEFEFE at the foreground color, and enter (paste) the value FE631E at the background color. Now the Color Contrast Ratio of 1,0:1 is shown (this is the same color contrast ratio, that is shown, after I entered the foreground color FEFEFE and the background color is the default color (FFFFFF).

Very strange behavior, especially it works with the same EXE file for a colleague of mine. And an other colleague has the same issues.

I added in my original posting the information, that I have Windows 10 Enterprise.

OLLI-S commented 1 year ago

I downloaded the older version CCA-Portable-3.1.4.exe and here ist works as expected:

image

ferllings commented 1 year ago

Fixed in 0e9a5cb8ccd63a9b80afe8c4000b79fe2bc4c777

OLLI-S commented 1 year ago

@ferllings Thank you for fixing this issue and releasing the new version so quickly! Really appreciate that!

ferllings commented 1 year ago

I appreciate the 'so quickly' ;)