Overriding faces with inverse-video
Hi,
(First of all, I hope that this is still a right place to report issues. I couldn't find an email address to post on the mailing list.)
I am trying to extend powerline, and I would like to give a color to the new information. Doing something like (propertize ... (list face (:foreground "red"))
should in principle work fine, with face
being either the active or inactive version of the face, as chosen by powerline.
However, with the modus themes, the face powerline-active0
uses inverse-video
.
`(powerline-active0 ((,class :background ,bg-main :foreground ,blue-faint :inverse-video t)))
So the code above, when face
is the active face, ends up changing the text background instead of the foreground. And there is no easy way to change the foreground in a uniform way.
For such instances, I believe that it would be better to manually swap foreground and background, rather than using inverse-video:
`(powerline-active0 ((,class :background ,blue-faint :foreground ,bg-main)))
There seem to be 6 faces (including this one) using inverse-video, but the problem is quite specific, so I don't know if the others would be affected.
Thanks!