help-gnu-emacs
[Top][All Lists]
Advanced

[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 09:26:02 +0000

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 via email to

[Prev in Thread] Current Thread [Next in Thread]