Add more file icons (#2861)

Joseph T. Lyons created

Release Notes:

- Added file icons for Python and Elixir

Change summary

assets/icons/file_icons/elixir.svg      |  3 ++
assets/icons/file_icons/file_types.json | 33 ++++++++++++++++++--------
assets/icons/file_icons/phoenix.svg     |  4 +++
assets/icons/file_icons/python.svg      |  6 ++++
4 files changed, 36 insertions(+), 10 deletions(-)

Detailed changes

assets/icons/file_icons/elixir.svg 🔗

@@ -0,0 +1,3 @@
+<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M8 2L8.6165 2.10275C8.65805 1.8534 8.54532 1.60357 8.33085 1.46975C8.11639 1.33594 7.84243 1.34449 7.63673 1.49142L8 2ZM9.88714 8.62257C10.1098 9.73604 9.86526 10.3554 9.4569 10.7229C9.00367 11.1308 8.19498 11.375 7 11.375V12.625C8.30502 12.625 9.49633 12.3692 10.2931 11.6521C11.1347 10.8946 11.3902 9.76396 11.1129 8.37743L9.88714 8.62257ZM7 11.375C5.87824 11.375 5.17563 11.0417 4.75444 10.6206C4.32847 10.1946 4.125 9.61372 4.125 9H2.875C2.875 9.88628 3.17153 10.8054 3.87056 11.5044C4.57437 12.2083 5.62176 12.625 7 12.625V11.375ZM4.125 9C4.125 7.72699 5.00594 4.90668 8.36327 2.50858L7.63673 1.49142C3.99406 4.09332 2.875 7.27301 2.875 9H4.125ZM7.3835 1.89725C7.09577 3.62363 7.69108 4.78835 8.35497 5.78419C9.03189 6.79957 9.66859 7.52983 9.88714 8.62257L11.1129 8.37743C10.8314 6.97017 9.96811 5.95043 9.39503 5.09081C8.80892 4.21165 8.40423 3.37637 8.6165 2.10275L7.3835 1.89725Z" fill="black"/>
+</svg>

assets/icons/file_icons/file_types.json 🔗

@@ -21,23 +21,27 @@
         "dll": "storage",
         "doc": "document",
         "docx": "document",
+        "eex": "elixir",
         "eslintrc": "eslint",
         "eslintrc.js": "eslint",
         "eslintrc.json": "eslint",
+        "ex": "elixir",
+        "exs": "elixir",
+        "fish": "terminal",
+        "flac": "audio",
         "fmp": "storage",
         "fp7": "storage",
-        "flac": "audio",
-        "fish": "terminal",
         "frm": "storage",
         "gdb": "storage",
+        "gif": "image",
         "gitattributes": "vcs",
         "gitignore": "vcs",
         "gitmodules": "vcs",
-        "gif": "image",
         "go": "code",
         "h": "code",
         "handlebars": "code",
         "hbs": "template",
+        "heex": "elixir",
         "htm": "template",
         "html": "template",
         "ib": "storage",
@@ -51,16 +55,16 @@
         "ldf": "storage",
         "lock": "lock",
         "log": "log",
-        "mdb": "storage",
         "md": "document",
+        "mdb": "storage",
         "mdf": "storage",
         "mdx": "document",
         "mp3": "audio",
         "mp4": "video",
         "myd": "storage",
         "myi": "storage",
-        "ods": "document",
         "odp": "document",
+        "ods": "document",
         "odt": "document",
         "ogg": "video",
         "pdb": "storage",
@@ -74,24 +78,24 @@
         "profile": "terminal",
         "ps1": "terminal",
         "psd": "image",
-        "py": "code",
+        "py": "python",
         "rb": "code",
         "rkt": "code",
         "rs": "rust",
         "rtf": "document",
         "sav": "storage",
         "scm": "code",
+        "sdf": "storage",
         "sh": "terminal",
         "sqlite": "storage",
-        "sdf": "storage",
         "svelte": "template",
         "svg": "image",
         "swift": "code",
-        "ts": "typescript",
-        "tsx": "code",
         "tiff": "image",
         "toml": "toml",
+        "ts": "typescript",
         "tsv": "storage",
+        "tsx": "code",
         "txt": "document",
         "wav": "audio",
         "webm": "video",
@@ -103,9 +107,9 @@
         "zlogin": "terminal",
         "zsh": "terminal",
         "zsh_aliases": "terminal",
-        "zshenv": "terminal",
         "zsh_histfile": "terminal",
         "zsh_profile": "terminal",
+        "zshenv": "terminal",
         "zshrc": "terminal"
     },
     "types": {
@@ -127,6 +131,9 @@
         "document": {
             "icon": "icons/file_icons/book.svg"
         },
+        "elixir": {
+            "icon": "icons/file_icons/elixir.svg"
+        },
         "eslint": {
             "icon": "icons/file_icons/eslint.svg"
         },
@@ -145,9 +152,15 @@
         "log": {
             "icon": "icons/file_icons/info.svg"
         },
+        "phoenix": {
+            "icon": "icons/file_icons/phoenix.svg"
+        },
         "prettier": {
             "icon": "icons/file_icons/prettier.svg"
         },
+        "python": {
+            "icon": "icons/file_icons/python.svg"
+        },
         "rust": {
             "icon": "icons/file_icons/rust.svg"
         },

assets/icons/file_icons/phoenix.svg 🔗

@@ -0,0 +1,4 @@
+<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M12 8C12 7.32138 11.9375 6.5 11.7188 5.75C11.0625 6.53125 9.875 7.1875 9 7.5C9.75 4.90625 8.5625 2.1875 7 2C7 3.96875 6.625 4.90625 5.5 6.5C4 4 2.5 5.5 2 6C2.5 6.5 3.21832 7.24064 3.34375 8.3125C3.6875 11.25 5.75 12 7.5 12C9.25 12 9.5 10 11.5 11" stroke="black" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
+<circle cx="4.03125" cy="6.625" r="1.53125" fill="black"/>
+</svg>

assets/icons/file_icons/python.svg 🔗

@@ -0,0 +1,6 @@
+<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M6.18452 1.9164C5.01625 1.9164 3.98489 2.77625 3.91991 3.9468H3.72024C2.81569 3.9468 2 4.63733 2 5.587V7.1098C2 8.05947 2.81569 8.75 3.72024 8.75H4.33631C4.67376 8.75 5.02976 8.48561 5.02976 8.06155C5.02976 7.46058 5.51694 6.9734 6.11791 6.9734H7.27976C8.18431 6.9734 9 6.28288 9 5.3332V4.0642C9 2.83419 7.93913 1.9164 6.73214 1.9164H6.18452Z" stroke="black" stroke-width="1.25"/>
+<path d="M7.79613 12.0836C8.97889 12.0836 10.0103 11.2025 10.0702 10.0191H10.2738C11.1885 10.0191 12 9.31459 12 8.36187V6.8135C12 5.86077 11.1885 5.15625 10.2738 5.15625H9.65439C9.30991 5.15625 8.96057 5.42749 8.96057 5.84577C8.96057 6.46262 8.46051 6.96268 7.84365 6.96268H6.69494C5.78027 6.96268 4.96875 7.6672 4.96875 8.61993V9.91023C4.96875 11.148 6.02678 12.0836 7.24554 12.0836H7.79613Z" stroke="black" stroke-width="1.25"/>
+<circle cx="6.03975" cy="3.9167" r="0.633501" fill="black"/>
+<circle cx="7.92285" cy="10.0793" r="0.670898" fill="black"/>
+</svg>