]> git.eshelyaron.com Git - emacs.git/commitdiff
(x-create-frame-with-faces): Set threshold for "light color"
authorRichard M. Stallman <rms@gnu.org>
Tue, 25 Jun 1996 18:19:09 +0000 (18:19 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 25 Jun 1996 18:19:09 +0000 (18:19 +0000)
at .6 of the total for white.

lisp/faces.el

index 6489bbcfaa71eeabbecf7a81c47e75af1dbebd33..003262e6610f6e96a469499cb3a1ce3e1a0c544d 100644 (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