Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add file icons for Dart, Swift, Kotlin, Java, Fonts (#8404)
Sai Gokula Krishnanfcd0571ab4db
diff --git a/assets/icons/file_icons/dart.svg b/assets/icons/file_icons/dart.svgnew file mode 100644index 00000000000..6f3b164cb26--- /dev/null+++ b/assets/icons/file_icons/dart.svg@@ -0,0 +1,6 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="14px" height="14px" viewBox="0 0 14 14" version="1.1">+<g id="surface1">+<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 9.203125 3.410156 C 8.792969 3 8.378906 2.597656 7.957031 2.207031 C 7.835938 2.078125 7.664062 1.996094 7.476562 1.996094 C 7.472656 1.996094 7.472656 1.996094 7.46875 1.996094 C 7.324219 2.011719 7.1875 2.042969 7.0625 2.089844 L 7.074219 2.085938 L 4.425781 3.40625 Z M 3.71875 3.71875 L 3.71875 9.078125 C 3.714844 9.109375 3.710938 9.144531 3.710938 9.179688 C 3.710938 9.40625 3.800781 9.613281 3.945312 9.765625 L 6.183594 12.003906 L 10.066406 12.003906 L 10.066406 10.066406 Z M 3.40625 3.40625 C 3.40625 3.40625 5.707031 2.257812 6.855469 1.683594 C 7.039062 1.59375 7.25 1.539062 7.476562 1.539062 C 7.496094 1.539062 7.515625 1.539062 7.53125 1.539062 C 7.824219 1.597656 8.082031 1.722656 8.296875 1.902344 L 8.292969 1.898438 L 12.460938 6.066406 L 12.460938 10.519531 L 10.519531 10.519531 L 10.519531 12.460938 L 5.996094 12.460938 L 1.898438 8.367188 C 1.683594 8.140625 1.546875 7.839844 1.542969 7.503906 C 1.558594 7.316406 1.609375 7.148438 1.6875 6.992188 L 1.683594 7 Z M 3.40625 3.40625 "/>+</g>+</svg>diff --git a/assets/icons/file_icons/file_types.json b/assets/icons/file_icons/file_types.jsonindex dd7977aa912..2ce6ccc1574 100644--- a/assets/icons/file_icons/file_types.json+++ b/assets/icons/file_icons/file_types.json@@ -22,6 +22,7 @@"css": "css","csv": "storage","cts": "typescript",+ "dart": "dart","dat": "storage","db": "storage","dbf": "storage",@@ -64,7 +65,7 @@"ico": "image","ini": "settings","j2k": "image",- "java": "code",+ "java": "java","jfif": "image","jp2": "image","jpeg": "image",@@ -73,6 +74,7 @@"json": "storage","jsonc": "storage","jxl": "image",+ "kt": "kotlin","ldf": "storage","lock": "lock","lockb": "bun",@@ -101,9 +103,11 @@"odt": "document","ogg": "audio","opus": "audio",+ "otf": "font","pdb": "storage","pdf": "document","php": "php",+ "plist": "template","png": "image","ppt": "document","pptx": "document",@@ -128,11 +132,12 @@"sqlite": "storage","svelte": "template","svg": "image",- "swift": "code",+ "swift": "swift","tiff": "image","toml": "toml","ts": "typescript","tsv": "storage",+ "ttf": "font","tsx": "code","txt": "document","vue": "vue",@@ -176,6 +181,9 @@"css": {"icon": "icons/file_icons/css.svg"},+ "dart": {+ "icon": "icons/file_icons/dart.svg"+ },"default": {"icon": "icons/file_icons/file.svg"},@@ -200,6 +208,9 @@"expanded_folder": {"icon": "icons/file_icons/folder_open.svg"},+ "font": {+ "icon": "icons/file_icons/font.svg"+ },"haskell": {"icon": "icons/file_icons/haskell.svg"},@@ -212,6 +223,12 @@"image": {"icon": "icons/file_icons/image.svg"},+ "java": {+ "icon": "icons/file_icons/java.svg"+ },+ "kotlin":{+ "icon": "icons/file_icons/kotlin.svg"+ },"lock": {"icon": "icons/file_icons/lock.svg"},@@ -257,6 +274,9 @@"storage": {"icon": "icons/file_icons/database.svg"},+ "swift": {+ "icon": "icons/file_icons/swift.svg"+ },"template": {"icon": "icons/file_icons/html.svg"},diff --git a/assets/icons/file_icons/font.svg b/assets/icons/file_icons/font.svgnew file mode 100644index 00000000000..011f6a6b1d5--- /dev/null+++ b/assets/icons/file_icons/font.svg@@ -0,0 +1,6 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="14px" height="14px" viewBox="0 0 14 14" version="1.1">+<g id="surface1">+<path style="fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke:rgb(0%,0%,0%);stroke-opacity:1;stroke-miterlimit:4;" d="M 16.001786 21 L 19.497321 21 M 5.997321 21 L 12 3 L 18.002679 21 M 4.502679 21 L 7.998214 21 M 14.997321 14.000893 L 9.002679 14.000893 " transform="matrix(0.486111,0,0,0.486111,1.166667,1.166667)"/>+</g>+</svg>diff --git a/assets/icons/file_icons/java.svg b/assets/icons/file_icons/java.svgnew file mode 100644index 00000000000..bfe01dab51e--- /dev/null+++ b/assets/icons/file_icons/java.svg@@ -0,0 +1,7 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="14px" height="14px" viewBox="0 0 14 14" version="1.1">+<g id="surface1">+<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 10.644531 9.734375 C 9.640625 9.734375 8.824219 8.917969 8.824219 7.910156 C 8.824219 6.90625 9.640625 6.089844 10.644531 6.089844 C 11.652344 6.089844 12.46875 6.90625 12.46875 7.910156 C 12.46875 8.917969 11.652344 9.734375 10.644531 9.734375 Z M 10.644531 7 C 10.144531 7 9.734375 7.410156 9.734375 7.910156 C 9.734375 8.414062 10.144531 8.824219 10.644531 8.824219 C 11.148438 8.824219 11.558594 8.414062 11.558594 7.910156 C 11.558594 7.410156 11.148438 7 10.644531 7 Z M 7.457031 4.265625 L 6.542969 4.265625 L 6.542969 2.441406 L 7.457031 2.441406 Z M 6.089844 4.265625 L 5.175781 4.265625 L 5.175781 1.53125 L 6.089844 1.53125 Z M 4.722656 4.265625 L 3.808594 4.265625 L 3.808594 2.441406 L 4.722656 2.441406 Z M 4.722656 4.265625 "/>+<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 5.632812 12.011719 C 3.617188 12.011719 1.988281 10.382812 1.988281 8.367188 L 1.988281 5.632812 L 9.277344 5.632812 L 9.277344 8.367188 C 9.277344 10.382812 7.648438 12.011719 5.632812 12.011719 Z M 5.632812 12.011719 "/>+</g>+</svg>diff --git a/assets/icons/file_icons/kotlin.svg b/assets/icons/file_icons/kotlin.svgnew file mode 100644index 00000000000..468c6cf8c0a--- /dev/null+++ b/assets/icons/file_icons/kotlin.svg@@ -0,0 +1,6 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="14px" height="14px" viewBox="0 0 14 14" version="1.1">+<g id="surface1">+<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 12.125 12.125 L 1.875 12.125 L 1.875 1.875 L 12.125 1.875 L 7 7 Z M 12.125 12.125 "/>+</g>+</svg>diff --git a/assets/icons/file_icons/swift.svg b/assets/icons/file_icons/swift.svgnew file mode 100644index 00000000000..82cf178aa52--- /dev/null+++ b/assets/icons/file_icons/swift.svg@@ -0,0 +1,6 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="14px" height="14px" viewBox="0 0 14 14" version="1.1">+<g id="surface1">+<path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 8.269531 1.53125 C 13.078125 4.824219 11.523438 8.457031 11.523438 8.457031 C 11.523438 8.457031 12.890625 10.015625 12.335938 11.375 C 12.335938 11.375 11.773438 10.421875 10.828125 10.421875 C 9.914062 10.421875 9.378906 11.375 7.546875 11.375 C 3.460938 11.375 1.53125 7.9375 1.53125 7.9375 C 5.210938 10.375 7.722656 8.648438 7.722656 8.648438 C 6.066406 7.679688 2.539062 3.039062 2.539062 3.039062 C 5.609375 5.675781 6.9375 6.371094 6.9375 6.371094 C 6.144531 5.710938 3.921875 2.484375 3.921875 2.484375 C 5.699219 4.296875 9.230469 6.828125 9.230469 6.828125 C 10.234375 4.027344 8.269531 1.53125 8.269531 1.53125 "/>+</g>+</svg>