diff options
| author | Mattias EngdegÄrd | 2020-06-18 21:55:36 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2020-06-18 21:55:36 +0200 |
| commit | b6c7780bb02465e3af2ccec332fc2d8b79fe7a2a (patch) | |
| tree | d6701365b7eb1ca52301e020ecd0595ffb1066d0 | |
| parent | ba450b6f462e278fcd3bc96c88f154fce219f5fc (diff) | |
| download | emacs-b6c7780bb02465e3af2ccec332fc2d8b79fe7a2a.tar.gz emacs-b6c7780bb02465e3af2ccec332fc2d8b79fe7a2a.zip | |
; * lisp/faces.el (color-luminance-dark-limit): Better doc string.
| -rw-r--r-- | lisp/faces.el | 7 |
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." | |||
| 1795 | "#ffffff" "black")) | 1795 | "#ffffff" "black")) |
| 1796 | 1796 | ||
| 1797 | (defconst color-luminance-dark-limit 0.325 | 1797 | (defconst color-luminance-dark-limit 0.325 |
| 1798 | "The relative luminance below which a color is considered 'dark', | 1798 | "The relative luminance below which a color is considered 'dark'. |
| 1799 | in the sense that white text is more readable than black with the | 1799 | A 'dark' color in this sense provides better contrast with white |
| 1800 | color as background. This value was determined experimentally.") | 1800 | than with black; see `color-dark-p'. |
| 1801 | This value was determined experimentally.") | ||
| 1801 | 1802 | ||
| 1802 | (defun color-dark-p (rgb) | 1803 | (defun color-dark-p (rgb) |
| 1803 | "Whether RGB is more readable against white than black. | 1804 | "Whether RGB is more readable against white than black. |