Add file icons for Dart, Swift, Kotlin, Java, Fonts (#8404)

Sai Gokula Krishnan created

Added icons for
- Dart - https://www.svgrepo.com/svg/473578/dart
- Swift - https://www.svgrepo.com/svg/512939/swift-146
- Kotlin - https://www.svgrepo.com/svg/473692/kotlin
- Java - https://www.svgrepo.com/svg/449119/java-filled
- Fonts - https://www.svgrepo.com/svg/532172/font

Extended support for
- .plist as template

<img width="164" alt="Screenshot 2024-02-26 at 12 17 08 AM"
src="https://github.com/zed-industries/zed/assets/25414681/bd438028-af82-44cd-934f-21ab72ac9d0f">

Release Notes:

- Added icons for Dart, Swift, Kotlin, Java, and font files.
- Changed icon for `.plist` files.

Change summary

assets/icons/file_icons/dart.svg        |  3 +++
assets/icons/file_icons/file_types.json | 24 ++++++++++++++++++++++--
assets/icons/file_icons/font.svg        |  6 ++++++
assets/icons/file_icons/java.svg        |  7 +++++++
assets/icons/file_icons/kotlin.svg      |  6 ++++++
assets/icons/file_icons/swift.svg       |  6 ++++++
6 files changed, 50 insertions(+), 2 deletions(-)

Detailed changes

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">

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"
     },

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>

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>

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>

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>