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
479 stars 107 forks source link

CCAe 3.2.0 color picker shows wrong screen area depending on display scale % #275

Open A11yEvangel opened 1 year ago

A11yEvangel commented 1 year ago

Version 3.2.0 of CCA (Electron) does not properly handle changes in screen display scale percentages. Example: When a laptop lid is open (display scale = 125%) vs. closed (display scale = 100% using attached monitor).

The color picker displays an area far from the actual picker position. The old Classic 2.6.0 version handles such changes fine.

Desktop information:

Steps To Reproduce the issue

  1. Use a laptop with Display Scale set to 125% (Recommended) but with monitor attached by HDMI cable
  2. Open CCAe 3.2.0
  3. Choose the color picker and then move to the area to sample a pixel's color
  4. Close the laptop cover. That changes the Display Scale to 100% (Recommended) for the monitor
  5. Choose the color picker and then move to the area to sample a pixel's color

Expected behavior CCAe adjusts its window dimensions based on the display scale. It also adjusts the color picker screen "window's" position based on the new display scale (just like the old version 2.6.0 does)

A11yEvangel commented 6 months ago

Still an issue in version 3.5.2

detlevhfischer commented 3 months ago

Slightly related issue: when normally using a large external monitor and then having only the laptop's monitor when on the road, and opening up CCA, the app may be shown outside the viewport. I see no way of getting it to display on the smaller built-in screen. Closing and repoening the app does not help.

njeleniauskas commented 1 month ago

To add to the information here, I am also experiencing the same issue with v3.5.4 on Win 11 (build 22631.4169).

All OS zoom settings that are not 100% cause the contents of the magnifier to not match the picker location (they are consistently in an upward-left location).