]> git.eshelyaron.com Git - emacs.git/commit
Define the dark luminance limit as a named constant
authorMattias Engdegård <mattiase@acm.org>
Thu, 18 Jun 2020 19:16:42 +0000 (21:16 +0200)
committerMattias Engdegård <mattiase@acm.org>
Thu, 18 Jun 2020 19:16:42 +0000 (21:16 +0200)
commitba450b6f462e278fcd3bc96c88f154fce219f5fc
treed0c2202bc4245378ab409be06c68ba988f0efcab
parent75babd073a0e00a5bd1a08dc2059742c1a145ea9
Define the dark luminance limit as a named constant

To make the meaning of the color-dark-p cutoff luminance clear,
define it as a named constant.  (We no longer use the somewhat
obscure 0.6^2.2 definition since it doesn't really make sense
to define the limit in gamma-compressed space.)

* lisp/faces.el (color-luminance-dark-limit): New constant.
(color-dark-p): Use color-luminance-dark-limit.
lisp/faces.el