counsel-colors-emacs stopped working #921
Since i opened this issue, i can't find what causes the error in my config.
I'm not going to reopen this issue, because the bug isn't there with a fresh .emacs.d, But it would be nice if you had a hint for me.
Looks like you have
(color-name-to-rgb "000000") ;; => nil (color-name-to-rgb "#000000") ;; => ;; (0.0 0.0 0.0)
Look through your init to find the code that registers
I can add a work-around that returns the same color in case there is an error.
…n error In case `color-name-to-rgb' returns nil. Re #921
Looking in this problem again, I found a few things:
Another problem is the foreground color of
for choosing this foreground color
This returned color only works if the initial foreground-color of
(counsel-colors--best-contrast-color) (counsel-colors--update-highlight): Replace with shr-color-visible. (counsel-colors--name-to-hex): Fix docstring. (counsel-colors--formatter): New defun generalizing ivy--format-function-generic for counsel-colors-emacs and counsel-colors-web and fixing foreground/background contrast of current candidate. (counsel-colors-emacs, counsel-colors-web): Simplify logic. Fix docstring. Do not hard-code ivy-count-format. Reduce display width. Use counsel-colors--formatter with text properties. (counsel-colors--web-colors-alist): Remove. (counsel-colors--web-alist): Replacement for counsel-colors--web-colors-alist based on shr-color-html-colors-alist. (counsel-colors-action-insert-hex, counsel-colors-action-kill-hex): Use text properties. (counsel-colors-action-insert-name) (counsel-colors-action-kill-name): Redundant; remove. Fixes abo-abo#921 and closes abo-abo#1436.