Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
swiper/ivy: Make background blending optional #278
Right now, swiper and ivy blend the background colors of the different match groups with the background color defined for the current selection. With that blending, the background colors I have defined for the groups are hardly recognizable at all:
Would it be possible to make that blending optional so that the match group backgrounds are always taken literally?
Of course, that has one problem. When you have many equal candidates and your input matches the complete candidates, then you can't know what's the currently selected one. In that case, you should define
Exactly, that's an issue I kept running into, until I added blending. Also keep in mind that a program is free to pass propertized strings with custom backgrounds to
This is the direction to go, I think. Which specific theme do you have in mind?
In any case, do try
Then it's just a matter to patch
(defun colir-blend (c1 c2) "Blend the two colors C1 and C2 using `colir-compose-method'. C1 and C2 are triples of floats in [0.0 1.0] range." (apply #'color-rgb-to-hex (cl-mapcar colir-compose-method c1 c2)))
Do you know how to make
Oleh Krehel firstname.lastname@example.org writes:
My tsdh-dark-theme.el which ships with emacs. But I think the problem
Oh, yes, that works!
(frame-parameter nil 'background-mode) ;=> dark
The value is either the symbol
,----[ (info "(elisp)Font and Color Parameters") ]