mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-19 19:37:58 +00:00
; * lisp/faces.el (readable-foreground-color): Fix editing mistake.
This commit is contained in:
parent
68ae6faa7f
commit
d8a6d2e481
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue