unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* checking for light or dark background
@ 2022-02-02  9:26 goncholden via Users list for the GNU Emacs text editor
  2022-02-02 12:56 ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: goncholden via Users list for the GNU Emacs text editor @ 2022-02-02  9:26 UTC (permalink / raw)
  To: goncholden via Users list for the GNU Emacs text editor

I want to determine whether emacs is using a light or dark background. This could be set up by emacs itself
or by a theme.

Purhaps I could write a function that I can use in an 'if' clause.

(color-dark-p
(color-name-to-rgb
(face-attribute 'default :background)))

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

end of thread, other threads:[~2022-02-21 11:16 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-02  9:26 checking for light or dark background goncholden via Users list for the GNU Emacs text editor
2022-02-02 12:56 ` Eli Zaretskii
2022-02-02 13:25   ` goncholden
2022-02-02 13:27     ` goncholden
2022-02-02 14:41       ` Eli Zaretskii
2022-02-02 16:18         ` goncholden
2022-02-02 14:48       ` Yuri Khan
2022-02-03  4:19         ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-03  4:31           ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-08  1:33   ` James Cloos
2022-02-08  3:29     ` Eli Zaretskii
2022-02-20 19:30       ` James Cloos
2022-02-20 20:05         ` Eli Zaretskii
2022-02-21 11:16           ` Yuri Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).