# Add a newtype wrapper around the global \`ThemeRegistry\` \(\#7025\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e69e6f558663ce01339e987c5179c1a849c9a0c6

Requested commit: e69e6f558663ce01339e987c5179c1a849c9a0c6

Commit: e69e6f558663ce01339e987c5179c1a849c9a0c6

Tree: e1ff794b94f4c56e98d37696aa0dfbf948667ebc

Author: Marshall Bowers

Committer: GitHub

## Message

```
Add a newtype wrapper around the global `ThemeRegistry` (#7025)

This PR adds a newtype wrapper around the global `ThemeRegistry`.

This allows us to limit where the `ThemeRegistry` can be accessed
directly via `cx.global` et al., without going through the dedicated
methods on the `ThemeRegistry`.

Release Notes:

- N/A
```

## Parents

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

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