# settings_ui: Fix theme not being configurable in certain scenarios \(\#46069\) · gitcafe/zed

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

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

Visibility: public

Requested revision: da992374b3a702e1675902325c6fc0870fbbd23a

Requested commit: da992374b3a702e1675902325c6fc0870fbbd23a

Commit: da992374b3a702e1675902325c6fc0870fbbd23a

Tree: f62d1242ca73dd58ba6df494874c240e12ae55c5

Author: Finn Evers

Committer: GitHub

## Message

```
settings_ui: Fix theme not being configurable in certain scenarios (#46069)

Closes https://github.com/zed-industries/zed/issues/44091

The issue here was that we were missing a proper default for
`ThemeSelection`. This is a disadvantage of not having the defaults in
code but actually in the `default.json`, so this here basically copies
the default from the `default.json` into code for the settings UI to
work properly.

Release Notes:

- Fixed an issue where the theme was not configurable from the settings
UI if no theme was configured prior.
```

## Parents

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

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