all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: goncholden via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: goncholden via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: checking for light or dark background
Date: Wed, 02 Feb 2022 09:26:02 +0000	[thread overview]
Message-ID: <Vgbz1as2NZiM_ZlE0UVSsisxltHnz74-x9T1CbaTo_2NbDa_wwp7EWt09dMRiCqshlivRlNe5J3Ou4KIhaFHNwnMy7xMPsRHvXJ46OCFHy0=@protonmail.com> (raw)

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

             reply	other threads:[~2022-02-02  9:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-02  9:26 goncholden via Users list for the GNU Emacs text editor [this message]
2022-02-02 12:56 ` checking for light or dark background 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

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='Vgbz1as2NZiM_ZlE0UVSsisxltHnz74-x9T1CbaTo_2NbDa_wwp7EWt09dMRiCqshlivRlNe5J3Ou4KIhaFHNwnMy7xMPsRHvXJ46OCFHy0=@protonmail.com' \
    --to=help-gnu-emacs@gnu.org \
    --cc=goncholden@protonmail.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.