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 17:26:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

>>     (defun make-color (light dark)
>>       (if (frame--current-backround-mode (selected-frame)) dark light))
>>
>> Or do you have something more sophisticated in mind?
>
> The latter.  Usages of these objects have to create a face eventually so
> that they'll be displayed dynamically differently on different frames.

Or wherever -- we might be making an SVG dynamically, and want to
postpone calculating the colour until we know what frame we're showing
the SVG on.  (Etc.)

-- 
(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]