Function: treemacs--propagate-new-icons
treemacs--propagate-new-icons is a byte-compiled function defined in
treemacs-themes.el.
Signature
(treemacs--propagate-new-icons THEME)
Documentation
Add THEME's new icons to the other themes.
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-themes.el
(defun treemacs--propagate-new-icons (theme)
"Add THEME's new icons to the other themes."
(unless (string= (treemacs-theme->name theme) "Default")
(dolist (other-theme (delete theme treemacs--themes))
(pcase-dolist (`(,current-icons . ,other-icons)
`(,(cons (treemacs-theme->gui-icons theme)
(treemacs-theme->gui-icons other-theme))
,(cons (treemacs-theme->tui-icons theme)
(treemacs-theme->tui-icons other-theme))))
(treemacs--maphash current-icons (ext icon)
(unless (ht-get other-icons ext)
(ht-set! other-icons ext icon)))))))