all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Tim Cross <theophilusx@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Automatic face setting based on contrast?
Date: Fri, 08 Oct 2021 09:57:56 +0300	[thread overview]
Message-ID: <837deoype3.fsf@gnu.org> (raw)
In-Reply-To: <87tuhswcfw.fsf@gmail.com> (message from Tim Cross on Fri, 08 Oct 2021 11:49:06 +1100)

> From: Tim Cross <theophilusx@gmail.com>
> Date: Fri, 08 Oct 2021 11:49:06 +1100
> 
> Over the years, I've seen a considerable growth in the number of faces
> defined, which has made consistent definitions of themes somewhat
> challenging. Running M-x list-display-faces on my system shows over 1100
> face definitions, which seems excessive.

In "emacs -Q", I see only 114 faces in that display.

> While many of these do use
> inheritance, many don't. This is unfortunate. It would be great if all
> modes which define faces by default inherit from one of the semantic
> font lock faces, allowing basic theme definitions to be possible by just
> tweaking the much smaller number of semantic faces and leaving tweaking
> of mode specific derived faces to the user when desired.

I think tweaking 100+ faces is not much easier than tweaking 1000.
Both border on the impractical.

> It would also be useful if there was some way of listing the defined
> faces which showed which face they are derived/inherited from to make it
> easier to see exactly what would be affected if you modify the 'parent'
> face and which faces are not defined to inherit from one of the semantic
> faces (and could be a possible candidate for redefining to inherit from
> a semantic face).

That sounds like a simple Grep job to me.

Eventually, I don't think there's a good solution to color contrast
that relies on manual tweaking of the faces.



  reply	other threads:[~2021-10-08  6:57 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87k0iub53g.fsf.ref@yahoo.com>
2021-10-03 13:38 ` Why has the light blue theme been made obsolete? Po Lu
2021-10-03 14:25   ` Stefan Kangas
2021-10-03 14:52     ` Stefan Kangas
2021-10-03 16:04       ` [External] : " Drew Adams
2021-10-17  4:04         ` Jean Louis
2021-10-17 11:30           ` Stefan Kangas
2021-10-17 17:08             ` Drew Adams
2021-10-17 17:32               ` Stefan Kangas
2021-10-17 19:24                 ` Drew Adams
2021-10-17 20:31                   ` Stefan Monnier
2021-10-17 22:53                     ` Drew Adams
2021-10-18  0:40                       ` Stefan Monnier
2021-10-17 17:07           ` Drew Adams
2021-10-05 21:15       ` Automatic face setting based on contrast? Richard Stallman
2021-10-05 21:20         ` Alexandre Garreau
2021-10-06 20:53           ` Richard Stallman
2021-10-05 23:00         ` [External] : " Drew Adams
2021-10-05 23:10         ` Stefan Kangas
2021-10-06  0:20           ` Po Lu
2021-10-06  1:01             ` Stefan Kangas
2021-10-07 22:22               ` Richard Stallman
2021-10-07 22:22           ` Richard Stallman
2021-10-08  0:49             ` Tim Cross
2021-10-08  6:57               ` Eli Zaretskii [this message]
2021-10-09  1:45                 ` Tim Cross
2021-10-09  7:38                   ` Eli Zaretskii
2021-10-09 23:29               ` Richard Stallman
2021-10-09 23:29               ` Richard Stallman
2021-10-06  1:39         ` Stefan Monnier
2021-10-07 12:32           ` Tyler Grinn
2021-10-07 12:52             ` Simon Pugnet
2021-10-07 13:36             ` Stefan Monnier
2021-10-07 22:23               ` Richard Stallman
2021-10-04  9:30   ` Why has the light blue theme been made obsolete? Lars Ingebrigtsen
2021-10-17  4:18     ` Jean Louis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=837deoype3.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=theophilusx@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.