summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-06-25 18:19:09 +0000
committerRichard M. Stallman <rms@gnu.org>1996-06-25 18:19:09 +0000
commit7a07c9a0c793f278d648d7b346931900e782616e (patch)
treeba45b89f0391fb7158b3385c3cb5072d9bc6b49f
parent2b3435b251ddcc4f60b70f8b177b8451671d354a (diff)
downloademacs-7a07c9a0c793f278d648d7b346931900e782616e.tar.gz
(x-create-frame-with-faces): Set threshold for "light color"
at .6 of the total for white.
-rw-r--r--lisp/faces.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index 6489bbcfaa7..003262e6610 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -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