From 81002e448c56bc658792e400519f6bd309029784 Mon Sep 17 00:00:00 2001 From: Evgeny Kurnevsky Date: Sun, 1 Oct 2023 14:41:55 +0300 Subject: [PATCH] Add vscode icons. --- icons/close-dark.png | Bin 0 -> 252 bytes icons/close-light.png | Bin 0 -> 272 bytes icons/debug-stop-dark.png | Bin 0 -> 265 bytes icons/debug-stop-light.png | Bin 0 -> 257 bytes icons/empty-window-dark.png | Bin 0 -> 348 bytes icons/empty-window-light.png | Bin 0 -> 344 bytes icons/sync-dark.png | Bin 0 -> 481 bytes icons/sync-light.png | Bin 0 -> 488 bytes lsp-metals-treeview.el | 17 ++++++++++++----- 9 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 icons/close-dark.png create mode 100644 icons/close-light.png create mode 100644 icons/debug-stop-dark.png create mode 100644 icons/debug-stop-light.png create mode 100644 icons/empty-window-dark.png create mode 100644 icons/empty-window-light.png create mode 100644 icons/sync-dark.png create mode 100644 icons/sync-light.png diff --git a/icons/close-dark.png b/icons/close-dark.png new file mode 100644 index 0000000000000000000000000000000000000000..b4327d835c7ee6884d4363d111e08d6c0f486e16 GIT binary patch literal 252 zcmeAS@N?(olHy`uVBq!ia0vp^Vj#@H1|*Mc$*~4fY)RhkE)4%caKYZ?lYt_f1s;*b z3=ASZAk662n|~T8SnlcK7-Dhy?WB!-4GIFz)yFpc*sbHz;pg|SShgfVz?MZg`9+EI z?{$_8v;L`0GCsNBL*%4jz8gj10TnfQuTwr4e&Gt>>2-L=u(Lw1Y2KC)^S7&V^m1Nj z-`oE0@!n5&O%7W7&p*M-;3gOulpq-CDaEkt!7bnTD{Pi8&)?kh_{w3R6C_JqBT9nv r(@M${i&7cN%ggmL^RkPR6AM!H@{7`Ezq647Dq`?-^>bP0l+XkKn-5*y literal 0 HcmV?d00001 diff --git a/icons/close-light.png b/icons/close-light.png new file mode 100644 index 0000000000000000000000000000000000000000..a5fd644d9a9e45e22846ae485b68b249dfbe2cd6 GIT binary patch literal 272 zcmeAS@N?(olHy`uVBq!ia0vp^Vj#@H1|*Mc$*~4foCO|{#S9E0J|N8K)|-DCC@5Lt z8c`CQpH@mmtT}V`<;yxP|;jZ7sn8b-nUZ@axoe5xZFRn zNxXjh^we+>{3C_M z6i-Y;GN+yP20@wO0M<* PI+VfF)z4*}Q$iB}43%Y5 literal 0 HcmV?d00001 diff --git a/icons/debug-stop-dark.png b/icons/debug-stop-dark.png new file mode 100644 index 0000000000000000000000000000000000000000..1474fdc048761847f492444f0eb5431e3ad619c1 GIT binary patch literal 265 zcmeAS@N?(olHy`uVBq!ia0vp^Vj#@H1|*Mc$*~4fY)RhkE)4%caKYZ?lYt_f1s;*b z3=ASZAk662n|~T8*y8Ep7-Dhy?UaqY%?<)A=?6<~`7(RCPTXl%W~qIsT6yGlpIoEB zCI6D;lb@MI?U42ozb$%!p>$a~o15qS{oT1Y-|d|r&hu^VjWPze2fREpJLfxan@mz` za4(A4?>lLiOt#N0wZ2@7SxS13l=eBzDLWcfdGOnumz?%}y_d6$Pxb5ny1jv6h2#p+ z6*15Ff$otkag8Vm&QB{TPb^AhC@(M9%goCzPEIUH)ypqRpZ(583aE&|)78&qol`;+ E0Bu)br~m)} literal 0 HcmV?d00001 diff --git a/icons/debug-stop-light.png b/icons/debug-stop-light.png new file mode 100644 index 0000000000000000000000000000000000000000..96af99018e9734be77fce0fbd324a6169e11d2d2 GIT binary patch literal 257 zcmeAS@N?(olHy`uVBq!ia0vp^Vj#@H1|*Mc$*~4foCO|{#S9E0J|N8K)|-DCC@5Lt z8c`CQpH@mmtT}V`<;yxP*Izc@Hayv^@Op z@$8W1-dXAe(`{p1zr~%~X(;CDE|TQR)XCK4|6*Rr2{Y5M6^odz|54CnkS)+G2}{`a z*CsD#^Kr!lmOl^oF)LPjNqTo3;PE-I_`^~21?*P0x%aqD{1lhNulh;SCx> zBIypoLLzJj6)*g`!_atGhb_?SWcI?fNl(r_tG1rKJz&b2oV2vN@s>+xM9F77V?5^) zH!IE9S}lWHCD+Dywo8xEg{~|7leQf=#rT%lHevA$O|1jGJKD0cJs-1lemmfL>B8iY z?iuL`nwe2g`pWyn?EJGekSVd8Z$h6;ugOC8M__Agrn^rB>mYeY$Kep*R+ nVo@qXd3m{BW?pu2a$-TMUVc&f>~}U&Kt&9mu6{1-oD!MmmtT}V`<;yxP|;IQ7sn8b-nUb2vzi=5T+dHk zU(VjBa3dljA}WPhFxz@W0v36RcR)7J8P9p+KR*`sxV?-lp$;s?r1 zZy93~)D-4CV!Xk4yZhGiw}m+&p7#$N`?g?1EcY4H4|&x>%y)xc$=16n`6f)}VG9%7 zUudV&n9HC4bJDBugWKeTXT=6Ty|Pk2GlcB}yF>-kyy6D$>-HA*KR(HtzmK>%qi*dN nksJR7xsFe*XAW3*{tH7^wncz~;oRLo4>NeW`njxgN@xNA#Yl%i literal 0 HcmV?d00001 diff --git a/icons/sync-dark.png b/icons/sync-dark.png new file mode 100644 index 0000000000000000000000000000000000000000..fe4ca6c433c7250adc80039a1f6d78b63a1e71ba GIT binary patch literal 481 zcmV<70UrK|P)~U00CS{L_t(I%hlA)N?TDB1>keRfiW3Z zEEFUbS_f5Mp$Hub5roe30+Kd^4oVRU+L!Q$K1Ls);@{9jLuX2{gqf65J*Cu7DP0yt@$H|#h$`AR^LKOun=C83gfHl0 z8!LDcPb1#-gR@vh^d}B5JAzloQE(S>gpWeBn!&B%5a+1eN3M^m^bY=9*wQNHcc%Cb zI>W#>=-@>O!I$`mwdj^p@H(#XIre^vyqWMW7W*?8raaWnLFqo zq?8`T@}ek;@1?37i}(YyMzCV_|S* XE^l&Yo9;Xs00000NkvXXu0mjf8EDf4 literal 0 HcmV?d00001 diff --git a/icons/sync-light.png b/icons/sync-light.png new file mode 100644 index 0000000000000000000000000000000000000000..b5d7f23d729d6e7cf907e76b2988d8914f8a2e53 GIT binary patch literal 488 zcmVP)^ z@#y*oZ(ZozIhAq_Eg0X@cK6U|Iz%J&aTV7)W^NoP7 zO|A3~A4-Bh;U4>uyBG6!SdGPxn1A6frc1(?T6%oFaZRjY2Sedl#4#4TkYpKm`1VL+ zWHFz{M)W;SkbHi+R^UZs?7I_8uC eKV|gnpZ5T2eC53z-?=dW0000bj|z# literal 0 HcmV?d00001 diff --git a/lsp-metals-treeview.el b/lsp-metals-treeview.el index ea5fdb4..ceb40c9 100644 --- a/lsp-metals-treeview.el +++ b/lsp-metals-treeview.el @@ -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) @@ -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) @@ -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)