unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: "Mattias Engdegård" <mattiase@acm.org>,
	"Yuri Khan" <yuri.v.khan@gmail.com>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>,
	Emacs developers <emacs-devel@gnu.org>
Subject: RE: master 68ae6fa: Improved light/dark colour predicate (bug#41544)
Date: Fri, 12 Jun 2020 12:02:36 -0700 (PDT)	[thread overview]
Message-ID: <68429610-f9e0-4566-8ed4-0b1a42fe030f@default> (raw)
In-Reply-To: <93F81C41-E774-4C02-9E9D-5B2CD1F66445@acm.org>

[-- Attachment #1: Type: text/plain, Size: 1635 bytes --]

> Please load the attached code (any Emacs version), and run M-x contrast-
> compare with various cutoff values on your favourite system, to find what
> value is best for readability of the colour names (first column).
> 
> Colours with luminance (last column) below the cutoff will be use white text,
> others black. It is mainly Emacs in graphical (non-TTY) mode that is of
> interest.
> 
> Please reply (to emacs-devel or to me) the following pieces of information:
> 
> * the cutoff value you found optimal
> * system information: window system, screen, anything you think is relevant
> * whether you use a light or dark background in your Emacs


Emacs 26.3, MS Windows 10, fairly old Dell monitor.

With emacs -Q, so light background: 

Cutoff 0.325 (default) is OK.
.2, .4, .5, and .6 are all OK. 

To me, showing the same color in both black & white,
next to each other, was the most helpful for deciding.
I looked mostly at the grays, and looked at their hex
codes, which are shown in both black & white.

Based on that, I'd say that that gray60 is about the
crossover point: black or white foreground are equally
readable for gray60 and immediate neighbors.  And that
corresponds to your default cutoff of about 0.325.
See attached screenshot.

Around that area, white text was generally more
visible/noticeable, but it was less _readable_.

But it makes no difference, with that comparison,
whether the frame background is light or dark.  Why?
because the areas to be compared provide their own
background - the frame background is seen only with
the rightmost (decimal-number) field.

[-- Attachment #2: throw-color-contrast-grays.png --]
[-- Type: image/png, Size: 18573 bytes --]

  parent reply	other threads:[~2020-06-12 19:02 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200610181238.9796.44750@vcs0.savannah.gnu.org>
     [not found] ` <20200610181239.947C4204DF@vcs0.savannah.gnu.org>
2020-06-10 19:20   ` master 68ae6fa: Improved light/dark colour predicate (bug#41544) Stefan Monnier
2020-06-10 19:34     ` Mattias Engdegård
2020-06-10 20:01       ` Stefan Monnier
2020-06-11  5:15     ` Yuri Khan
2020-06-11 16:15       ` Mattias Engdegård
2020-06-11 19:22         ` Yuri Khan
2020-06-12 15:50           ` Mattias Engdegård
2020-06-12 16:22             ` tomas
2020-06-12 18:36             ` Yuri Khan
2020-06-13 10:55               ` Mattias Engdegård
2020-06-12 19:02             ` Drew Adams [this message]
2020-06-12 19:09             ` Stephen Leake
2020-06-18 19:28               ` Mattias Engdegård
2020-06-18 19:35                 ` Drew Adams
2020-06-18 20:04                   ` Mattias Engdegård
2020-06-18 20:32                     ` Drew Adams
2020-06-21  7:51                       ` Mattias Engdegård
2020-06-18 19:40                 ` Basil L. Contovounesios
2020-06-18 19:58                   ` Mattias Engdegård
2020-06-13  4:05             ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=68429610-f9e0-4566-8ed4-0b1a42fe030f@default \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=mattiase@acm.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=yuri.v.khan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).