summaryrefslogtreecommitdiff
path: root/lisp/faces.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2020-06-18 21:55:36 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2020-06-18 21:55:36 +0200
commitb6c7780bb02465e3af2ccec332fc2d8b79fe7a2a (patch)
treed6701365b7eb1ca52301e020ecd0595ffb1066d0 /lisp/faces.el
parentba450b6f462e278fcd3bc96c88f154fce219f5fc (diff)
downloademacs-b6c7780bb02465e3af2ccec332fc2d8b79fe7a2a.tar.gz
emacs-b6c7780bb02465e3af2ccec332fc2d8b79fe7a2a.tar.bz2
emacs-b6c7780bb02465e3af2ccec332fc2d8b79fe7a2a.zip
; * lisp/faces.el (color-luminance-dark-limit): Better doc string.
Diffstat (limited to 'lisp/faces.el')
-rw-r--r--lisp/faces.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index 2480aaaf146..ba85973bf10 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -1795,9 +1795,10 @@ on which one provides better contrast with COLOR."
"#ffffff" "black"))
(defconst color-luminance-dark-limit 0.325
- "The relative luminance below which a color is considered 'dark',
-in the sense that white text is more readable than black with the
-color as background. This value was determined experimentally.")
+ "The relative luminance below which a color is considered 'dark'.
+A 'dark' color in this sense provides better contrast with white
+than with black; see `color-dark-p'.
+This value was determined experimentally.")
(defun color-dark-p (rgb)
"Whether RGB is more readable against white than black.