From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: VOTE: Changing completions-common-part face's default Date: Thu, 7 Nov 2019 13:52:55 +0000 Message-ID: References: <4c5631d4-9dfd-04c6-c573-b83c67fcc2fa@yandex.ru> <87pni7p83l.fsf@gmail.com> <87h83ipoi0.fsf@gmail.com> <93235eb5-8e04-7182-e2a4-49fbe610ee2b@yandex.ru> <28d4ae09-daca-324b-2fa6-9d7138d710fa@yandex.ru> <87zhh82d8c.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000027e7590596c1fcb2" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="88127"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Emacs developers , Stefan Monnier , Dmitry Gutov To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 07 14:53:16 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iSiDs-000MmL-9Q for ged-emacs-devel@m.gmane.org; Thu, 07 Nov 2019 14:53:16 +0100 Original-Received: from localhost ([::1]:42742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSiDr-0007Bj-5T for ged-emacs-devel@m.gmane.org; Thu, 07 Nov 2019 08:53:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41656) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSiDk-0007Bb-R8 for emacs-devel@gnu.org; Thu, 07 Nov 2019 08:53:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSiDj-00078u-P6 for emacs-devel@gnu.org; Thu, 07 Nov 2019 08:53:08 -0500 Original-Received: from mail-il1-x133.google.com ([2607:f8b0:4864:20::133]:45096) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iSiDj-00078e-JA for emacs-devel@gnu.org; Thu, 07 Nov 2019 08:53:07 -0500 Original-Received: by mail-il1-x133.google.com with SMTP id o18so1837905ils.12 for ; Thu, 07 Nov 2019 05:53:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6PPNLvW6VzWYFeb4HZWvFE/swjnJ4tQv2nAqdnLZ6BQ=; b=g88uJ2pRA1Yi5uHNPXRSSS75+QuGkPTUSfOhOmzGMGINjrVFb21M1bVIte6FkKMIfJ OW2q7/EFgNdAqmVSo803HrDC+zMcI96oVPQJgdIkgPgIp95BsclqzSOf/kEv1uVjn2Xg 6ZvUcNgdomkeJA5/8OnfEiPcp8oQ8x6q7o193IBu8hlO8qFIwS+dwvPB4iBuIAogMmPs fVu79sbd0BeKk0U/ExvpqA4KgomcHxU4e1Zr4UeIzXvKUJX4iq8QX0p7pZdrq03n+WY9 iBnre/dZ8CdR8Hz+IRiyQYSTDcKorJGH9C3RlIzEoFDbl6+rYWJjfPNVNcD25UmQy655 i0DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6PPNLvW6VzWYFeb4HZWvFE/swjnJ4tQv2nAqdnLZ6BQ=; b=KtRpqqLEdJk0DBrTH8dfUr02mt4TdjxkSwTi04oiXB6uBRh9vceOZjBlhMpjsq4K5K 4FU+0uNCIDVAkx8fhXnaXyrHf9cHrCWzYRn8J22Wgko3h0CXsQ41rmIhL1frlquXD0Dy dA1YoSyCscqPA0+CmExT2pxs9VuLdJAnI4VVrjP735f7FeBKZsLjjwv7hD1S/vJXq68x Co+OxO6H9Di3Q1KQvWfNS9QE9MxMH5yCYf25CXIF6GsisJwvXs8eugD6Yr/zkxWLUYCn vGsPKFCqwBjgGR7/ZvW73VZcdVO/9QfpxKIL1RUm2ZQmp7+UA1MGI8AqXuT88wYuSCxJ PkLg== X-Gm-Message-State: APjAAAVdx/Use0PIpAkbYB2pKGejubk/OMWy9GcW/S3heH8bxoPgqCdt dne9UJ0bO6Hqtphpnj1rBkmCLGUvAGdUlQ6npXI= X-Google-Smtp-Source: APXvYqwOeH+oqvqnf/j1HMX4h81PEoHSQ+CruNgMbyMrOuDGIuMTwWgE0sCWaqmhtB4WrrfvXSlDvm/lWovQU22GDIk= X-Received: by 2002:a92:1513:: with SMTP id v19mr4484568ilk.125.1573134786878; Thu, 07 Nov 2019 05:53:06 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::133 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:241917 Archived-At: --00000000000027e7590596c1fcb2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Nov 7, 2019 at 1:27 PM Yuri Khan wrote: > I thought I=E2=80=99d chime in with some actual color science to back the > feelings in this thread. Very nice. Thanks. > There is no formula for calculating how distinguishable two different > text colors on the same background are. I would say that the next best thing is to calculate the contrast difference between two colors period. blue4 vs black is 1.27 blue3 vs black is 1.87 So very good for reading the text, very bad for distinguishing the colors in two adjacent letters. This points to a rule for finding the perfect good compromise: find the color equidistant to both black and white that passes both tests. Of all the proposed faces so far, cyan4 seems to come closest to passing both these bars. But I found DodgerBlue3 passes the "vs white" (4.7) bar and almost passes the "vs black" bar (4.1). So I'd propose that color for the GUI default. On text terminals we could use whatever minibuffer-prompt uses. Jo=C3=A3o (of course we could just let styles choose how it highlights completions from a given face pool, but that's sadly off the table) --00000000000027e7590596c1fcb2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Nov 7, 2019 at 1:27 PM Yuri Khan <yuri.v.khan@gmail.com> wrote:

>= ; I thought I=E2=80=99d chime in with some actual color science to back the=
> feelings in this thread.

Very nice.= =C2=A0 Thanks.

> There is no formula for calculating how di= stinguishable two different
> text colors on the same background= are.

I would say that the next best thing is= to calculate the contrast
difference between two colors per= iod.

blue4 vs black is 1.27
blue3 vs bla= ck is 1.87

So very good for reading the text, very= bad for distinguishing
the colors in two adjacent letters.<= /div>

This points to a rule for finding the perfect good= compromise:
find the color equidistant to both black and wh= ite that passes
both tests.=C2=A0 Of all the proposed faces so fa= r, cyan4 seems to
come closest to passing both these bars. B= ut I found DodgerBlue3
passes the "vs white" (4.7) bar = and almost passes the "vs black"
bar (4.1).=C2=A0 =

So I'd propose that color for the GUI def= ault.

On text terminals we could use whatever = minibuffer-prompt uses.

Jo=C3=A3o

(of course we could just let styles choose how it highligh= ts completions
from a given face pool, but that's sadly off t= he table)
--00000000000027e7590596c1fcb2--