# theme: Add support for setting light/dark icon themes \(\#24702\) · gitcafe/zed

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

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

Visibility: public

Requested revision: cc931a8fcc2f8e26cf7a382838dd474e747d66b1

Requested commit: cc931a8fcc2f8e26cf7a382838dd474e747d66b1

Commit: cc931a8fcc2f8e26cf7a382838dd474e747d66b1

Tree: 5a69cb5f4189d9b838ebfc215bee71dcfa78c10a

Author: Marshall Bowers

Committer: GitHub

## Message

````
theme: Add support for setting light/dark icon themes (#24702)

This PR adds support for configuring both a light and dark icon theme in
`settings.json`.

In addition to accepting just an icon theme name, the `icon_theme` field
now also accepts an object in the following form:

```jsonc
{
  "icon_theme": {
    "mode": "system",
    "light": "Zed (Default)",
    "dark": "Zed (Default)"
  }
}
```

Both `light` and `dark` are required, and indicate which icon theme
should be used when the system is in light mode and dark mode,
respectively.

The `mode` field is optional and indicates which icon theme should be
used:
- `"system"` - Use the icon theme that corresponds to the system's
appearance.
- `"light"` - Use the icon theme indicated by the `light` field.
- `"dark"` - Use the icon theme indicated by the `dark` field.

Closes https://github.com/zed-industries/zed/issues/24695.

Release Notes:

- Added support for configuring both a light and dark icon theme and
switching between them based on system preference.
````

## Parents

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

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