Function: treemacs--root-icon-size-adjust

treemacs--root-icon-size-adjust is a macro defined in treemacs-icons.el.

Signature

(treemacs--root-icon-size-adjust WIDTH HEIGHT)

Documentation

Special adjust for the WIDTH and HEIGHT of an icon.

Necessary since root icons are not rectangular.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-icons.el
(defmacro treemacs--root-icon-size-adjust (width height)
  "Special adjust for the WIDTH and HEIGHT of an icon.
Necessary since root icons are not rectangular."
  `(let ((w (round (* ,width 0.9090)))
         (h (round (* ,height 1.1818))))
     (setq ,width w ,height h)))