Function: treemacs--select-icon-set

treemacs--select-icon-set is a byte-compiled function defined in treemacs-icons.el.

Signature

(treemacs--select-icon-set)

Documentation

Select the right set of icons for the current buffer.

Will select either the GUI or the TUI icons of the current theme.

TUI icons will be used if
 * treemacs--is-image-creation-impossible? returns t,
 * treemacs-no-png-images is it
 * or if the current frame is a TUI frame

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-icons.el
(defun treemacs--select-icon-set ()
  "Select the right set of icons for the current buffer.
Will select either the GUI or the TUI icons of the current theme.

TUI icons will be used if
 * `treemacs--is-image-creation-impossible?' returns t,
 * `treemacs-no-png-images' is it
 * or if the current frame is a TUI frame"
  (-let [icons (if (treemacs--should-use-tui-icons?)
                   (treemacs-theme->tui-icons treemacs--current-theme)
                 (treemacs-theme->gui-icons treemacs--current-theme))]
    (setq-local treemacs-icons icons)
    (dolist (icon-symbol treemacs--icon-symbols)
      (let ((variable (intern (format "treemacs-icon-%s" icon-symbol)))
            (value    (ht-get icons icon-symbol)))
        (set (make-local-variable variable) value)))))