Commit ff52c940 authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

(frame-set-background-mode): Use `color-values' and `display-color-p',

not `x-color-values' and `x-display-color-p'.
parent 9479c0ab
2007-02-07 Juanma Barranquero <lekktu@gmail.com>
 
* faces.el (face-valid-attribute-values): Use `defined-colors',
not its semi-obsolete alias `x-defined-colors'.
* faces.el (frame-set-background-mode): Use `color-values' and
`display-color-p', not `x-color-values' and `x-display-color-p'.
(face-valid-attribute-values): Use `defined-colors' instead of
`x-defined-colors'.
 
2007-02-07 Vinicius Jose Latorre <viniciusjl@ig.com.br>
 
......@@ -1617,17 +1617,17 @@ according to the `background-mode' and `display-type' frame parameters."
(or default-frame-background-mode 'dark))
((equal bg-color "unspecified-fg") ; inverted colors
(if (eq default-frame-background-mode 'light) 'dark 'light))
((>= (apply '+ (x-color-values bg-color frame))
((>= (apply '+ (color-values bg-color frame))
;; 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))
(* (apply '+ (color-values "white" frame)) .6))
'light)
(t 'dark)))
(display-type
(cond ((null window-system)
(if (tty-display-color-p frame) 'color 'mono))
((x-display-color-p frame)
((display-color-p frame)
'color)
((x-display-grayscale-p frame)
'grayscale)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment