# Remove old \`Theme\` definition \(\#3195\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 36a73d657a6fe1d53e5d0f81f60bfa83d00b77ff

Requested commit: 36a73d657a6fe1d53e5d0f81f60bfa83d00b77ff

Commit: 36a73d657a6fe1d53e5d0f81f60bfa83d00b77ff

Tree: 47593e654591e4a1764e6078c0237e66a82025b2

Author: Marshall Bowers

Committer: GitHub

## Message

```
Remove old `Theme` definition (#3195)

This PR removes the old `Theme` definition in favor of the new
`ThemeVariant`s.

The new `SyntaxStyles` have been reverted to the old `SyntaxTheme` that
operates by storing the syntax styles as a vector of
`gpui2::HighlightStyle`s.

This is necessary for the intended usage by `language2`, where we find
the longest key in the theme's syntax styles that matches the capture
name:

https://github.com/zed-industries/zed/blob/18431051d9d750d9e66284a71f7a55a1e31c1374/crates/language2/src/highlight_map.rs#L15-L41
```

## Parents

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

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