# Fall back to One themes if the selected theme doesn't exist \(\#7911\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c5a23faf7c01cb39797a5e5d28fdec7d92ffa4b1

Requested commit: c5a23faf7c01cb39797a5e5d28fdec7d92ffa4b1

Commit: c5a23faf7c01cb39797a5e5d28fdec7d92ffa4b1

Tree: 1dc1ef6030a038e7eebdda6b44453bf0edc98560

Author: Marshall Bowers

Committer: GitHub

## Message

```
Fall back to One themes if the selected theme doesn't exist (#7911)

This PR makes it so the One themes—One Dark and One Light—are used as a
fallback when trying to reload a theme that no longer exists in the
registry.

This makes it so when an extension providing the current theme is
removed, the active theme will change to either One Dark or One Light
(based on the system appearance) instead of retaining a cached version
of the theme.

Release Notes:

- Changed the behavior when uninstalling a theme to default to One Dark
or One Light (based on system appearance) rather than keeping a cached
version of the old theme.
```

## Parents

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

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