Function: gnus-splash-svg-color-symbols
gnus-splash-svg-color-symbols is a byte-compiled function defined in
gnus.el.gz.
Signature
(gnus-splash-svg-color-symbols LIST)
Documentation
Do color-symbol search-and-replace in svg file.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus.el.gz
(defun gnus-splash-svg-color-symbols (list)
"Do color-symbol search-and-replace in svg file."
(let ((type (plist-get (cdr list) :type))
(file (plist-get (cdr list) :file))
(color-symbols (plist-get (cdr list) :color-symbols)))
(if (string= type "svg")
(let ((data (with-temp-buffer (insert-file-contents file)
(buffer-string))))
(mapc (lambda (rule)
(setq data (replace-regexp-in-string
(concat "fill:" (car rule))
(concat "fill:" (cdr rule)) data)))
color-symbols)
(cons (car list) (list :type type :data data)))
list)))