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

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 4 months ago

Still an issue in version 3.5.2

detlevhfischer commented 2 weeks 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.