emacs-devel
[Top][All Lists]
Advanced

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

Re: region-based face-remapping


From: Stefan Monnier
Subject: Re: region-based face-remapping
Date: Mon, 15 Jan 2024 15:36:09 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

> How do you express these "more red" or "more/less contrast" using just
> the existing face attributes?  The :height example doesn't help
> because it just defines special values for an existing attribute, so
> the analogy would be to define a value for :foreground that would make
> it "more red".  How to do that?  And the same with "more or less
> contrast with the background color".

Allow a face to specify a function which takes the base face value and
returns the desired value of the attribute.  In order to change the
contrast, the "base face value" would need to include more than just the
base value of the specific attribute, but probably a whole vector giving
all the attributes.


        Stefan




reply via email to

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