diff options
| author | Mattias EngdegÄrd | 2020-06-11 00:06:24 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2020-06-11 00:06:24 +0200 |
| commit | d8a6d2e4810a4072cabbf76170dc4bf708f27d10 (patch) | |
| tree | dbd32846629e7e792e6253141eeb6037f2910398 | |
| parent | 68ae6faa7f1b4c348740667f98fbf1d1ce5a7979 (diff) | |
| download | emacs-d8a6d2e4810a4072cabbf76170dc4bf708f27d10.tar.gz emacs-d8a6d2e4810a4072cabbf76170dc4bf708f27d10.zip | |
; * lisp/faces.el (readable-foreground-color): Fix editing mistake.
| -rw-r--r-- | lisp/faces.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/faces.el b/lisp/faces.el index 5ecc256f077..8c3e464cb86 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -1790,7 +1790,8 @@ The returned value is a string representing black or white, depending | |||
| 1790 | on which one provides better contrast with COLOR." | 1790 | on which one provides better contrast with COLOR." |
| 1791 | ;; We use #ffffff instead of "white", because the latter is sometimes | 1791 | ;; We use #ffffff instead of "white", because the latter is sometimes |
| 1792 | ;; less than white. That way, we get the best contrast possible. | 1792 | ;; less than white. That way, we get the best contrast possible. |
| 1793 | (if (color-dark-p (mapcar (lambda (c) (/ c 65535.0)) color)) | 1793 | (if (color-dark-p (mapcar (lambda (c) (/ c 65535.0)) |
| 1794 | (color-values color))) | ||
| 1794 | "#ffffff" "black")) | 1795 | "#ffffff" "black")) |
| 1795 | 1796 | ||
| 1796 | (defun color-dark-p (rgb) | 1797 | (defun color-dark-p (rgb) |