From: Richard Copley <rcopley@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: John Wiegley <johnw@gnu.org>, Tom Tromey <tom@tromey.com>,
Emacs Development <emacs-devel@gnu.org>
Subject: Re: CSS contrast (#30295) (was Re: Heads-up: Emacs 26.1 RC1)
Date: Wed, 21 Mar 2018 11:34:47 +0000 [thread overview]
Message-ID: <CAPM58ogNiqNwuXuyG3oq7jsS1d4_DbAdt+VVAodATp70jq6s2w@mail.gmail.com> (raw)
In-Reply-To: <CAPM58oi7g=OYt9ZtKYRLtMN-pTLYWXnfKnFTAuZgG5r-Z=HGiQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1984 bytes --]
On 21 March 2018 at 09:59, Richard Copley <rcopley@gmail.com> wrote:
> On 21 March 2018 at 07:38, Eli Zaretskii <eliz@gnu.org> wrote:
>
>> > From: Richard Copley <rcopley@gmail.com>
>> > Date: Tue, 20 Mar 2018 19:56:12 +0000
>> > Cc: John Wiegley <johnw@gnu.org>, Tom Tromey <tom@tromey.com>,
>> > Emacs Development <emacs-devel@gnu.org>
>> >
>> > Patch 1 is a small fix for the current formula using color-distance.
>> > Patch 2 uses luminance as in Tom's original patch.
>> > I think patch 2 gives better contrast.
>>
>> Thanks, but I think this is a step backward, as it more or less goes
>> back to the code before the discussion of bug#25525.
>>
>
> Patch 2 does, yes. It's good to step backwards, because (the effect of)
> the original code was OK, whereas the current code leads to unreadable text.
>
> How about making the threshold a customizable value instead, with the
>> current hard-coded value the default? That'd be compatible, and
>> should allow you to get the contrast of your liking.
>>
>
> It sounds like you want to insist that white-on-pale-green is somehow
> better than black-on-pale-green, or that there's some other consideration
> that's more important.
> I don't understand.
>
To put it another way:
Your argument seemed to be that Tom's original criterion (use white text on
backgrounds with luminance <50%) was invented by Tom.
Is the current criterion (use white text on backgrounds inside a sphere of
a given radius centred on black, in the color-distance metric space) a
standard way of doing things?
I'm not saying that the luminance-less-than-50% calculation is a standard,
either, but I've seen it used before, which is more than I can say for the
color-inside-a-sphere calculation.
I'm also not saying that color-distance is any more or less "invented" than
luminance.
I do believe that color-distance is less relevant here than luminance is.
I also believe that black text is more readable than white text, on a pale
green background.
[-- Attachment #2: Type: text/html, Size: 3503 bytes --]
next prev parent reply other threads:[~2018-03-21 11:34 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-20 19:02 CSS contrast (#30295) (was Re: Heads-up: Emacs 26.1 RC1) Richard Copley
2018-03-20 19:17 ` Eli Zaretskii
2018-03-20 19:56 ` Richard Copley
2018-03-21 5:52 ` Yuri Khan
2018-03-21 7:54 ` Eli Zaretskii
2018-03-21 7:38 ` Eli Zaretskii
2018-03-21 9:59 ` Richard Copley
2018-03-21 11:34 ` Richard Copley [this message]
2018-03-21 12:47 ` Eli Zaretskii
2018-03-21 13:22 ` Richard Copley
2018-03-21 13:32 ` Eli Zaretskii
2018-03-21 14:24 ` Richard Copley
2018-03-21 15:36 ` Eli Zaretskii
2018-03-21 19:03 ` Richard Copley
2018-03-21 12:40 ` Eli Zaretskii
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=CAPM58ogNiqNwuXuyG3oq7jsS1d4_DbAdt+VVAodATp70jq6s2w@mail.gmail.com \
--to=rcopley@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=johnw@gnu.org \
--cc=tom@tromey.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).