# Parameterize \`theme2::init\` to allow loading just the base theme \(\#3345\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b559bfd80f23758e482e53e4384143a72aef2556

Requested commit: b559bfd80f23758e482e53e4384143a72aef2556

Commit: b559bfd80f23758e482e53e4384143a72aef2556

Tree: c75bb658b93ca65fb0c3e35efde40931f950428c

Author: Marshall Bowers

Committer: GitHub

## Message

```
Parameterize `theme2::init` to allow loading just the base theme (#3345)

This PR adds a parameter to the `theme2::init` method to indicate what
the theme-loading behavior should be.

This allows us to indicate when we want to load all of the additional
built-in user themes (like in the Zed binary and in the storybook), and
when we don't want to load the user themes (like in tests).

We're using an enum over just a `bool` here for clarity at the call
site.

Release Notes:

- N/A
```

## Parents

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

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