emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dependent colours


From: Lars Ingebrigtsen
Subject: Re: Dependent colours
Date: Thu, 14 Apr 2022 15:36:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> (make-color ((background light) "blue")
>             ((background dark) "red"))
>
> Uhm...  Or something...  better...  :-)

I think we get to 99.7% of the use cases with just light/dark.

So (make-color "blue" "red") would probably be the shortest syntax we
could use here.  (The first for light backgrounds and the second for
dark.)  Or just (color "blue" "red"), since the point is to have
something short and convenient for people.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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