From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Automatic face setting based on contrast? Date: Tue, 05 Oct 2021 17:15:46 -0400 Message-ID: References: <87k0iub53g.fsf.ref@yahoo.com> <87k0iub53g.fsf@yahoo.com> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19463"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, emacs-devel@gnu.org To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 05 23:17:16 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 1mXroJ-0004tH-Oh for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Oct 2021 23:17:15 +0200 Original-Received: from localhost ([::1]:34766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXroH-0004dz-H9 for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Oct 2021 17:17:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXrmt-0003pX-5Q for emacs-devel@gnu.org; Tue, 05 Oct 2021 17:15:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55726) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXrms-0000vD-Mj; Tue, 05 Oct 2021 17:15:46 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1mXrms-0005Z2-5h; Tue, 05 Oct 2021 17:15:46 -0400 In-Reply-To: (message from Stefan Kangas on Sun, 3 Oct 2021 16:52:11 +0200) 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:276387 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > I made this point in the above bug report, but there is no way to > style Emacs with 25-50 face definitions. It is very hard to put an > exact number on this, as e.g. some faces are inherited and therefore > more important, but realistically speaking you need at least twice > that to have a somewhat decent coverage. Is this something that could be fixed, in principle? Could a theme specify some faces manually, and then Emacs would adjust various other faces automatically so as to contrast with some of those? Currently, a face can inherit properties from another face. Could there be a kind of contrast-inheritance where face A is set automatically to contrast strongly with B, and contrast somewhat with C and D? Based on calculations on the RGB codes, I imagine. This would call for a bit of research, but if we got it to work, specifying a good theme might become a lot easier. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)