Code Monkey home page Code Monkey logo

thepaciellogroup / cca-osx Goto Github PK

View Code? Open in Web Editor NEW
175.0 175.0 19.0 14.22 MB

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. The macOS version was developed by Cédric Trévisan based on the Windows version developed by Jun in collaboration with Steve Faulkner.

Home Page: http://www.paciellogroup.com/resources/contrastanalyser/

License: Other

Swift 100.00%

cca-osx's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cca-osx's Issues

Three-way/n-way contrast

Sometimes there are >2 colours that need to be compared (e.g. enabled/disabled controls -- though these should probably also be indicated with other visual means as well as colour -- and different data series in charts).

I would love to see this being able to work out the ratios between three colours (or more), and also find solutions to the contrast ratios, if they exist.

Example of an n-way tool: http://jxnblk.com/colorable/demos/matrix/ (it also does normal two-colour ones).

CCA disappears when it’s not the front-most app?

I’m using CCA 2.2 (1) on OS X 10.11.3, and it seems that the app disappears when it’s not the front-most app. (That seems like an odd behavior, so I’m almost wondering if maybe I’ve messed up the app’s configuration somehow?)

Consistently wrong color when using color picker

I´ve been using CCA for years, and has been a big fan.
Recently however, I am not, as CCA for Mac consistently gives me the wrong color when using the color picker.
It doesn´t really matter what kind of color it is, it is always wrong, which erodes my confidence in the tool. Although the error is inside of a few percent, it can be enough to tilt the result in either direction.
Some examples:
image
image
image

Tool crashes after multiple manual entries

I'm a product designer at Facebook and would like to recommend this tool for all designers at Facebook to use. However, I'm reluctant to recommend this tool because it regularly crashes. I really want designers to use this tool over other tools out there because the color picker is a really convenient way to quickly test colors. And it's something non-designers (engineers, product managers, etc) can easily use since they wouldn't need to know the Hex.

My workflow consists of toggling back and forth between the tool and Sketch (or Photoshop). I copy the hex value from Sketch and paste it into the foreground or background fields. It'll crash after about 6 times of manually entering a hex value into the fields.

Add support for opacity

Many websites now use opacity either directly on the colour (example: rgba(255, 0, 0, 0.2);) or by setting and opacity on an element (example: opacity: 0.4).

It would be very useful to be able to set an opacity for the foreground colour and a background colour to get the contrast of the combination of both.

Color Contrast Analyser tool in iMac (desktop)

*Color Contrast Analyser tool in iMac (desktop) *

  • Noticed discrepancies in the color code picked directly from HTML rendered in browser.
  • Attached example shows three different values for Firefox, Chrome and Safari browsers for the same color point. (sample source code is included in the screenshot).
  • This occurs on iMac desktop only and not on Macbook (laptop).
    image

Possible to support use with full-screen apps?

I always have Safari in full-screen mode. I wonder if it's possible to allow CCA to be visible "over the top" of Safari, so that it can be used like an inspector on Safari? This may mean changing the window type when running "over the top" of a full-screen app.

Not sure if this is possible, but it would be nice!

Results don't match other color contrast analyzers

I was testing some text (hex code #999999 on a white background) and saw that the result was 2.8:1. I tested the same text in Chrome's dev tools and got a result of 2.85:1. I then tested the same colors in WebAIM's and Level Access' analyzers and they returned the same 2.85:1 result.

Colour Contrast analyser showing a result of 2.8:1

Chrome's dev tools analyzer showing a result of 2.85:1

WebAIM's analyzer showing a result of 2.85:1

Level Access' analyzer showing a result of 2.85:1

I'm using Version 2.4 on macOS 10.13.4.

Provide suggestions

Provide suggestions that passes various levels A / AA ... for fixed foreground or background color.

Contrast ratio and rounding

Following discussion here w3c/wcag#200 (comment) there is/will be an issue with the way in which CCA currently rounds results to single decimal point and then uses the rounded value for its pass/fail determination.

4.5:1 and 3:1 need to be treated as absolute thresholds, and the non-rounded result needs to be assessed against this contrast. so for instance 4.49124578:1 needs to fail as it is below 4.5:1 in absolute terms - it can't be rounded first to 4.5:1 and THEN compared to the threshold figure.

this may require some extra tweaking of the displayed text for these cases. Maybe for values that are between 4.45 - 4.4999999 (or whatever the precision internally is) the output should read "The contrast ratio is: just below 4.5:1" (and the same for 2.95 - 2.9999 for the 3:1 ratio)

xref ThePacielloGroup/CCA-Win#30

New Picker more complicated?

I am a big fan of the Colour Contrast Analyzer but with the new version I have to click multiple times to get the real picker and in the old version I just had to click picker and there it was.

Am I doing something wrong or is this on purpose?

image

Screen recording new version:
new.zip

Screen recording old version:
old.zip

Simple slider to keep hue and only change value

I don't want to look a gift horse in the mouth, but...
I loved the older version's simple method to take an existing color and simply change the value to achieve an accessible version. This was especially helpful when the original color was around 3.5:1 and just needed to be bumped up/down.
The current version requires us to balance rgb values. Is it possible to bring back the original slider as an alternate adjustment?

Otherwise, thank you for continuing to provide a great resource.

in Mac, Reds don't match

I've just updated to last CCA (2.4), but I had same problem on previous.
I use the dropper to get the colour and also if the last CCA uses the system one, colour is different from the one defined in CSS.

cc

Black text issue

On NSTextFields, when the color is set to black.
When we change the background color, to the text color, is adjusted to white if the contrast is not good enought

CIELAB Sliders

This might help in making suggestions, because it should make it easier to darken/lighten a colour until a solution is found.

Broken button (magnifying glass)

I think the magnifying glass button is broken. Shouldn't it open the color eyedropper when clicked? Nothing happens when I do.
image

CCA doesn’t allow pasting color values into the foreground/background boxes.

I’m using CCA 2.2 (1) on OS X 10.11.3, and it looks like you can’t paste color values into the “foreground” or “background” text boxes.

Steps to reproduce:

  1. Copy “#337ab7” to your clipboard.
  2. Open Colour Contrast Analyser.
  3. Select the current text within the “foreground” field and hit Cmd+V.

(Interestingly enough, if you right-click within the field and choose “Paste” from the context menu, that seems to work.)

Picks wrong color from Photoshop

I have some swatches of color defined in a branding manual. When I pick from those colors in Photoshop, the HEX-values are changed. Like #73d1ff is turned into #6fd0ff when picked from Photoshop. The PSD file is sRGB. The Displays are set to sRGB profiles.

Other colorpickers pick the correct colors from Photoshop. but not CCA-OSX.

Picker is way off on monitor

I have downloaded the current version and am working on a Mac Pro, on OS Sierra 10.12.5.
When I try to use the picker, it lands about 3.5” above the object I’m trying to measure.
Is there a way to make this align properly?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.