[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Automatic face setting based on contrast?

From: Richard Stallman
Subject: Automatic face setting based on contrast?
Date: Tue, 05 Oct 2021 17:15:46 -0400

[[[ 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)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]