From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: VOTE: Changing completions-common-part face's default Date: Thu, 7 Nov 2019 16:43:43 +0200 Message-ID: <3aa0d0e8-9500-a77c-cfe4-c26efd6efb56@yandex.ru> 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: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="44679"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 Cc: Stefan Monnier , Emacs developers To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= , Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 07 15:45:12 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 1iSj27-000BWd-RN for ged-emacs-devel@m.gmane.org; Thu, 07 Nov 2019 15:45:11 +0100 Original-Received: from localhost ([::1]:43628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSj26-0007A1-H7 for ged-emacs-devel@m.gmane.org; Thu, 07 Nov 2019 09:45:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50664) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSj0p-0006Sw-K6 for emacs-devel@gnu.org; Thu, 07 Nov 2019 09:43:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSj0n-0003Bp-9k for emacs-devel@gnu.org; Thu, 07 Nov 2019 09:43:50 -0500 Original-Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:39308) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iSj0n-0003Ax-2B for emacs-devel@gnu.org; Thu, 07 Nov 2019 09:43:49 -0500 Original-Received: by mail-wm1-x335.google.com with SMTP id t26so2705077wmi.4 for ; Thu, 07 Nov 2019 06:43:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=hNes3Nv766I8UTYbjlWhNsfkx3q5gWZh92W7ohyuX5o=; b=TwugdUHHiLl9KpdyWhxyf0gga6y9EyD9DVHatovQIFMX6ZgjrDpj+XHabA0DwJclAW 3uVw3FpL1Kjmtg0EGqL8qr5s9iEr7fts9amcEaJM/YtOxo/hU2zuPP25UFpwW5FBOyY4 8MF7d7VwvnKoPUu1wsC0B8peffEQ4eT6QOjbb4z6k+HUprxKWvgJxVwyKLEbn7Z06Nn2 F5GTeTRwTnM0e41/r2hltxrpQovpjozoO/TJ6PlFHrZQVftZtxtwtPb4YTl7WEEGXRb3 LPMULqT3IlXotbmhhBEKOwX7PM3fjJMpQySutDAjuxtCBbzn6n9BXf2b2otFNb1CvxRp Z1Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=hNes3Nv766I8UTYbjlWhNsfkx3q5gWZh92W7ohyuX5o=; b=DBnplougsiw75PZIEwL/hHrHU2jArioiElE2V0gwuri5fBwrckU9IQfkXA7oJwp0rT zMVAj+mCcZ72qVwf9L3WbUqM7ybqsJ0U9AFJ1vQjngLVRAhlZOLmUipLDRn/Id+QlYMD D0DP2F46RF/AwmsF8/tm/g4K55CrVK55nu8OdcVAg0VC9KRmWrbi5jfcx8jE3fXPJJPn U2kMGjIwyjUgI3qKyszXqZLGsxMyp5WvFSkLIMOc8zS/aFShqwxbzaIHLBr18pl9HSCT +u9ZRLPnozi1uKKfZr1NLrLJF6d9ZBbkqZw4iT2SzDY6aqR7YeyjXoEUnpLFhmshRvW+ sB1w== X-Gm-Message-State: APjAAAUi7ZQk8jJdpMaSNJi4yx5LMBFabOy5zaqMRbjd6RIgYXETGkkm 7ipFcauhNBkcQQzTc5V7cAGuIMcq4Cw= X-Google-Smtp-Source: APXvYqzecAJl/mvSJI0mWCzg86RJY18fpSb1cWf1wA+yTMMFRRj9so9udjlQsbDCVSSErDJzBDzDYQ== X-Received: by 2002:a1c:f305:: with SMTP id q5mr3260681wmq.137.1573137826707; Thu, 07 Nov 2019 06:43:46 -0800 (PST) Original-Received: from [192.168.0.149] ([109.110.245.170]) by smtp.googlemail.com with ESMTPSA id i71sm3646049wri.68.2019.11.07.06.43.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Nov 2019 06:43:44 -0800 (PST) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::335 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:241925 Archived-At: On 07.11.2019 15:52, João Távora wrote: > On Thu, Nov 7, 2019 at 1:27 PM Yuri Khan > wrote: > > > I thought I’d chime in with some actual color science to back the > > feelings in this thread. > > Very nice.  Thanks. I concur. I should find the same links very useful in some future theming discussions. > > 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. I don't know if it works like that. The necessary contrast between fg and bg is about being able to *read* the letter, and not just being able to notice that the color is different. So the standard for distinguishing colors should be much lower. > 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). It's a really pretty color, but if the goal is choosing a "not in-your-face" option, it fails that condition for the above reason. > (of course we could just let styles choose how it highlights completions > from a given face pool, but that's sadly off the table) To reiterate something I said in another email: if flex stops using common-part where it does now, company-capf will become confused.