From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Automatic face setting based on contrast? Date: Thu, 07 Oct 2021 09:36:24 -0400 Message-ID: References: <87k0iub53g.fsf.ref@yahoo.com> <87k0iub53g.fsf@yahoo.com> <87tuhtrp6m.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24750"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Richard Stallman , Stefan Kangas , luangruo@yahoo.com, emacs-devel@gnu.org To: Tyler Grinn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 07 15:45:41 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYTiO-0006Bm-RJ for ged-emacs-devel@m.gmane-mx.org; Thu, 07 Oct 2021 15:45:41 +0200 Original-Received: from localhost ([::1]:39528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYTiM-0004vr-WA for ged-emacs-devel@m.gmane-mx.org; Thu, 07 Oct 2021 09:45:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYTZa-0005cl-MA for emacs-devel@gnu.org; Thu, 07 Oct 2021 09:36:34 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:49093) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYTZW-00021v-4p; Thu, 07 Oct 2021 09:36:32 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id EC7908050D; Thu, 7 Oct 2021 09:36:27 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 819B780488; Thu, 7 Oct 2021 09:36:26 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1633613786; bh=bVgLw6Tsg02pzfX2aVdXELHZeYL8gY6MBkZ/OCr1juM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ict5iKid1VyOrqNlYIJgwduSQQ4Al+h5aA1iFZ/fBTbybd0dOa3JeSlsqMyiOhWLE nC3OZw5citwsEb4wcY9mMT/JBWHbp2iY9EXBTi/8pySKjndUibpKym4ZRQr7jxa8b1 jjcWYPOE0kTMvjLg+K1cKK9Vw4sVugk2Klpee2u8qk3mO5g1463jgJGrssJcTmeA32 mDDDPMOptUHn4LtSLg2VY00kscJ0qptRUf3gxigVFyWoLEwgZUcxYw99QxGer8uCvC BOfdbDAAnxwcPWXMGvL1aFqodEdkFq6R3l2iSYG2EsmIo+InMiziKGkrwOHuMO5VNu DwbEcghRv0Lhw== Original-Received: from pastel (unknown [45.72.241.23]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 42F84120294; Thu, 7 Oct 2021 09:36:26 -0400 (EDT) In-Reply-To: <87tuhtrp6m.fsf@gmail.com> (Tyler Grinn's message of "Thu, 07 Oct 2021 08:32:01 -0400") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:276497 Archived-At: > It seems to me that there will always be a choice to be made, or a range > of acceptable colors for contrast. Maybe a less opinionated way to go > about this would be to limit the color picker in the customize face > buffer to accessible colors and show a warning for faces that are not > sufficiently contrasting. FWIW, I wrote the previous message with the following use-case in mind: define a face that makes the text more/less red, or one that increases/decreases contrast, ... Stefan