comparison lisp/startup.el @ 36898:022d6947262f

(fancy-splash-head): Don't change the colors of the XPM image on a dark background.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 20 Mar 2001 15:14:48 +0000
parents 00b48ce14be0
children 7159a50e6ef7
comparison
equal deleted inserted replaced
36897:bd3d3bab4291 36898:022d6947262f
1084 (when img 1084 (when img
1085 (when (> window-width image-width) 1085 (when (> window-width image-width)
1086 ;; Center the image in the window. 1086 ;; Center the image in the window.
1087 (let ((pos (/ (- window-width image-width) 2))) 1087 (let ((pos (/ (- window-width image-width) 2)))
1088 (insert (propertize " " 'display `(space :align-to ,pos)))) 1088 (insert (propertize " " 'display `(space :align-to ,pos))))
1089
1090 ;; Change the color of the XPM version of the splash image
1091 ;; so that it is visible with a dark frame background.
1092 (when (and (memq 'xpm img)
1093 (eq (frame-parameter nil 'background-mode) 'dark))
1094 (setq img (append img '(:color-symbols (("#000000" . "gray"))))))
1095 1089
1096 ;; Insert the image with a help-echo and a keymap. 1090 ;; Insert the image with a help-echo and a keymap.
1097 (let ((map (make-sparse-keymap)) 1091 (let ((map (make-sparse-keymap))
1098 (help-echo "mouse-2: browse http://www.gnu.org/")) 1092 (help-echo "mouse-2: browse http://www.gnu.org/"))
1099 (define-key map [mouse-2] 1093 (define-key map [mouse-2]