Skip to content

Commit

Permalink
[Icons] Correct the determination of icons' types.
Browse files Browse the repository at this point in the history
Fixes #1061
  • Loading branch information
Alexander-Miller committed Sep 25, 2023
1 parent 01a3bcd commit 967916c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/elisp/treemacs-icons.el
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,11 @@ Necessary since root icons are not rectangular."
(treemacs--root-icon-size-adjust width height))
(if (and (integerp treemacs--icon-size) (image-type-available-p 'imagemagick))
(create-image ,file-path 'imagemagick nil :ascent 'center :width width :height height)
(create-image ,file-path (intern (treemacs--file-extension ,file-path)) nil
:ascent 'center :width width :height height))))))
(create-image
,file-path
(intern (treemacs--file-extension (treemacs--filename ,file-path)))
nil
:ascent 'center :width width :height height))))))

(define-inline treemacs--create-icon-strings (file fallback)
"Create propertized icon strings for a given FILE image and TUI FALLBACK."
Expand Down

0 comments on commit 967916c

Please sign in to comment.