all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Dependent colours
@ 2022-04-14 13:00 Lars Ingebrigtsen
  2022-04-14 13:36 ` Lars Ingebrigtsen
  2022-04-14 13:48 ` Eli Zaretskii
  0 siblings, 2 replies; 18+ messages in thread
From: Lars Ingebrigtsen @ 2022-04-14 13:00 UTC (permalink / raw)
  To: emacs-devel@gnu.org

In many situations, packages and users need to specify colours to use
for something.  We generally defer this to the face machinery, because
which colours to use for something might depend on whether you have a
light or dark background, or whether it's a GUI Emacs or a terminal one,
etc.

This works well as a machinery, but it's pretty cumbersome when the user
just wants to specify a list of colours.

So I'm wondering whether we could create something that would make
things easier for the user here, and if anybody had any thoughts on the
issue.

Off the top of my head...  if we had something like

(make-color "red")

(make-color ((background light) "blue")
            ((background dark) "red"))

Uhm...  Or something...  better...  :-)

Anyway, code that uses these colour objects would then create real
(dynamic) faces out of them, eventually, so that there'd be no change in
the display engine (I think).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2022-04-15 11:12 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-14 13:00 Dependent colours Lars Ingebrigtsen
2022-04-14 13:36 ` Lars Ingebrigtsen
2022-04-14 14:11   ` Stefan Monnier
2022-04-14 14:14     ` Lars Ingebrigtsen
2022-04-14 14:57       ` [External] : " Drew Adams
2022-04-14 15:26       ` Lars Ingebrigtsen
2022-04-14 13:48 ` Eli Zaretskii
2022-04-14 13:56   ` Lars Ingebrigtsen
2022-04-14 16:10     ` Eli Zaretskii
2022-04-14 16:13       ` Lars Ingebrigtsen
2022-04-14 16:23         ` Eli Zaretskii
2022-04-15  8:46           ` Lars Ingebrigtsen
2022-04-15  9:32             ` Eli Zaretskii
2022-04-15  9:48               ` Lars Ingebrigtsen
2022-04-15 10:32                 ` Po Lu
2022-04-15 10:37                   ` Lars Ingebrigtsen
2022-04-15 11:12                     ` Po Lu
2022-04-15 10:38                 ` Eli Zaretskii

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.