[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
checking for light or dark background
From: |
goncholden |
Subject: |
checking for light or dark background |
Date: |
Wed, 02 Feb 2022 13:27:58 +0000 |
‐‐‐‐‐‐‐ 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.
Re: checking for light or dark background, James Cloos, 2022/02/07