emacs-devel
[Top][All Lists]
Advanced

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

Re: About the :distant-foreground face attribute


From: Jan Djärv
Subject: Re: About the :distant-foreground face attribute
Date: Wed, 8 Jan 2014 10:35:56 +0100

Hi.

8 jan 2014 kl. 06:24 skrev Chong Yidong <address@hidden>:

> Change the feature so it applies to all faces, but in a configurable
> way.  Introduce a new Lisp variable, `face-minimum-contrast', which
> specifies the minimum allowed contrast between the background and
> foreground of any face (or nil, which means to disable the feature).  If
> the contrast of a face is lower than specified, the foreground color is
> adjusted (say, by changing its V component) to conform to the minimum
> contrast.
> 

On Gtk and NS the region color to use is in that case specified by the system 
and should not be generated by modifying a color component.  How do you specify 
that?
Also, it isn't the contrast between the background and the foreground of a 
face, but the contrast between the background and foreground to be rendered, 
which comes from different faces in the case at hand.

> This would avoid having to introduce a :distant-foreground attribute for
> all faces, only to use that attribute for just one face (`region') and
> for one special purpose (to cope with the GTK selection color).  It
> would handle the generic class of problems involving text becoming
> illegible, such as due to bad themes.

distant-foreground can be used on any face, it just isn't.

        Jan D.




reply via email to

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