[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: checking for light or dark background
From: |
Eli Zaretskii |
Subject: |
Re: checking for light or dark background |
Date: |
Wed, 02 Feb 2022 16:41:10 +0200 |
> Date: Wed, 02 Feb 2022 13:27:58 +0000
> From: goncholden <goncholden@protonmail.com>
> Cc: help-gnu-emacs@gnu.org
>
>
> ‐‐‐‐‐‐‐ 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.
I don't understand: (frame-parameter nil 'background-mode) works for
Emacs 28 and later as well.
Re: checking for light or dark background, James Cloos, 2022/02/07