Skip to content

Commit

Permalink
Add vscode icons.
Browse files Browse the repository at this point in the history
  • Loading branch information
kurnevsky committed Oct 1, 2023
1 parent e1c6d39 commit 81002e4
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 5 deletions.
Binary file added icons/close-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/close-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/debug-stop-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/debug-stop-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/empty-window-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/empty-window-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/sync-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/sync-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 12 additions & 5 deletions lsp-metals-treeview.el
Original file line number Diff line number Diff line change
Expand Up @@ -616,10 +616,9 @@ collapsed or expanded."

;;
;; Icon theme for Metals treeview
;; Icons taken from vs code Metals code - although Metals draws letters on
;; the icons to indicate Class (C), method(M) etc. Would be nice to redesign
;; these in the future.
;; Icons are partially taken from VSCode and partially from Metals:
;; https://github.com/scalameta/metals-vscode/tree/master/icons
;; https://github.com/microsoft/vscode-codicons/tree/main/src/icons
;;
(treemacs-create-theme "Metals"
:icon-directory (f-join lsp-metals-treeview--dir lsp-metals-treeview--icon-dir)
Expand Down Expand Up @@ -658,7 +657,11 @@ collapsed or expanded."
(treemacs-create-icon :file "exception-dark.png" :extensions ("exception"))
(treemacs-create-icon :file "focus-dark.png" :extensions ("focus"))
(treemacs-create-icon :file "info-dark.png" :extensions ("info"))
(treemacs-create-icon :file "location-dark.png" :extensions ("location"))))
(treemacs-create-icon :file "location-dark.png" :extensions ("location"))
(treemacs-create-icon :file "empty-window-dark.png" :extensions ("empty-window"))
(treemacs-create-icon :file "sync-dark.png" :extensions ("sync"))
(treemacs-create-icon :file "debug-stop-dark.png" :extensions ("debug-stop"))
(treemacs-create-icon :file "close-dark.png" :extensions ("notifications-clear"))))

(treemacs-create-theme "Metals-light"
:icon-directory (f-join lsp-metals-treeview--dir lsp-metals-treeview--icon-dir)
Expand All @@ -681,7 +684,11 @@ collapsed or expanded."
(treemacs-create-icon :file "exception-light.png" :extensions ("exception"))
(treemacs-create-icon :file "focus-light.png" :extensions ("focus"))
(treemacs-create-icon :file "info-light.png" :extensions ("info"))
(treemacs-create-icon :file "location-light.png" :extensions ("location"))))
(treemacs-create-icon :file "location-light.png" :extensions ("location"))
(treemacs-create-icon :file "empty-window-light.png" :extensions ("empty-window"))
(treemacs-create-icon :file "sync-light.png" :extensions ("sync"))
(treemacs-create-icon :file "debug-stop-light.png" :extensions ("debug-stop"))
(treemacs-create-icon :file "close-light.png" :extensions ("notifications-clear"))))

(treemacs-define-expandable-node-type metals-node
:open-icon (lsp-metals-treeview--icon item t)
Expand Down

0 comments on commit 81002e4

Please sign in to comment.