1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-28 10:56:36 +00:00

(fancy-splash-head): Reapply Gerd's hack to make the shadow of the

splash image grey on a dark background instead of black.
This commit is contained in:
Miles Bader 2001-11-03 18:09:33 +00:00
parent aed29b9702
commit e7f3afa945

View File

@ -1130,6 +1130,12 @@ where FACE is a valid face specification, as it can be used with
(let ((pos (/ (- window-width image-width) 2)))
(insert (propertize " " 'display `(space :align-to ,pos))))
;; Change the color of the XPM version of the splash image
;; so that it is visible with a dark frame background.
(when (and (memq 'xpm img)
(eq (frame-parameter nil 'background-mode) 'dark))
(setq img (append img '(:color-symbols (("#000000" . "gray30"))))))
;; Insert the image with a help-echo and a keymap.
(let ((map (make-sparse-keymap))
(help-echo "mouse-2: browse http://www.gnu.org/"))