all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: goncholden <goncholden@protonmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: checking for light or dark background
Date: Wed, 02 Feb 2022 13:27:58 +0000	[thread overview]
Message-ID: <KVkxOi0o6gG0XkpbDu2OA5V2KLpYY04RnrifhlpMfWxp-l-W0yMK_EQiz--CSfSHYq4k7oTzOHxrwKWi_pFG2MEUyx2c5wTy4xTTAYcjbDI=@protonmail.com> (raw)
In-Reply-To: <XGLTfH6X_jsKx9k5HnoZPFK9yhJ7-CLtx8kh1-XC1bBUQDJ8X7uCE6k7VsOyGKDBRTIZWoVZaDHS7gczsFasI1B2wliQY3eDTSu8KyMbqQQ=@protonmail.com>


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Wednesday, February 2nd, 2022 at 1:25 PM, goncholden <goncholden@protonmail.com> wrote:

> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
>
> On Wednesday, February 2nd, 2022 at 12:56 PM, Eli Zaretskii eliz@gnu.org wrote:
>
> > Date: Wed, 02 Feb 2022 09:26:02 +0000
> >
> > From: goncholden via Users list for the GNU Emacs text editor help-gnu-emacs@gnu.org
> >
> > 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.
>
> Like this:
>
> (frame-parameter nil 'background-mode)
>
> This evaluates to either light or dark. Very neat compared to what I was playing with initially.


The problem I was having was that for Emacs 27.2, the command (frame--current-backround-mode nil)
was not available.  What is the recommendation for Emacs>=28.




  reply	other threads:[~2022-02-02 13:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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='KVkxOi0o6gG0XkpbDu2OA5V2KLpYY04RnrifhlpMfWxp-l-W0yMK_EQiz--CSfSHYq4k7oTzOHxrwKWi_pFG2MEUyx2c5wTy4xTTAYcjbDI=@protonmail.com' \
    --to=goncholden@protonmail.com \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.