# Add infrastructure for loading icon themes from extensions \(\#23203\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/f53915c711ab184b690856332d84291c16bbaea5)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: f53915c711ab184b690856332d84291c16bbaea5

Requested commit: f53915c711ab184b690856332d84291c16bbaea5

Commit: f53915c711ab184b690856332d84291c16bbaea5

Tree: 03e4e6a37c0bb6f5dd5e50c34a05d7d9386db8fb

Author: Marshall Bowers

Committer: GitHub

## Message

````
Add infrastructure for loading icon themes from extensions (#23203)

This PR adds the supporting infrastructure to support loading icon
themes defined by extensions.

Here's an example icon theme:

```json
{
  "name": "My Icon Theme",
  "author": "Me <me@example.com>",
  "themes": [
    {
      "name": "My Icon Theme",
      "appearance": "dark",
      "file_icons": {
        "gleam": { "path": "./icons/file_type_gleam.svg" },
        "toml": { "path": "./icons/file_type_toml.svg" }
      }
    }
  ]
}
```

The icon paths are resolved relative to the root of the extension
directory.

Release Notes:

- N/A
````

## Parents

- [3b8a5c9647be53750d2d38fcb3ebe72163d1e5a1](https://git.cafe/gitcafe/zed/commit/3b8a5c9647be53750d2d38fcb3ebe72163d1e5a1?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/f53915c711ab184b690856332d84291c16bbaea5?format=markdown)
