1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-05 11:45:45 +00:00

; * lisp/faces.el (readable-foreground-color): Fix editing mistake.

This commit is contained in:
Mattias Engdegård 2020-06-11 00:06:24 +02:00
parent 68ae6faa7f
commit d8a6d2e481

View File

@ -1790,7 +1790,8 @@ The returned value is a string representing black or white, depending
on which one provides better contrast with COLOR."
;; We use #ffffff instead of "white", because the latter is sometimes
;; less than white. That way, we get the best contrast possible.
(if (color-dark-p (mapcar (lambda (c) (/ c 65535.0)) color))
(if (color-dark-p (mapcar (lambda (c) (/ c 65535.0))
(color-values color)))
"#ffffff" "black"))
(defun color-dark-p (rgb)