1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00

(x-create-frame-with-faces): Set threshold for "light color"

at .6 of the total for white.
This commit is contained in:
Richard M. Stallman 1996-06-25 18:19:09 +00:00
parent c1046d18cf
commit b8c631a53b

View File

@ -1101,7 +1101,10 @@ selected frame."
((< (apply '+ (x-color-values
(cdr (assq 'background-color params))
frame))
(/ (apply '+ (x-color-values "white" frame)) 3))
;; Just looking at the screen,
;; colors whose values add up to .6 of the white total
;; still look dark to me.
(* (apply '+ (x-color-values "white" frame)) .6))
'dark)
(t 'light)))
(modify-frame-parameters frame