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:

18431051d9/crates/language2/src/highlight_map.rs (L15-L41)
This commit is contained in:
Marshall Bowers 2023-11-01 04:05:50 +01:00 committed by GitHub
parent 18431051d9
commit 36a73d657a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 173 additions and 6832 deletions

View file

@ -1,7 +1,7 @@
use gpui2::Hsla;
use refineable::Refineable;
use crate::{generate_struct_with_overrides, SyntaxStyles};
use crate::{generate_struct_with_overrides, SyntaxTheme};
pub struct SystemColors {
pub transparent: Hsla,
@ -94,7 +94,7 @@ generate_struct_with_overrides! {
status: StatusColors,
git: GitStatusColors,
player: PlayerColors,
syntax: SyntaxStyles
syntax: SyntaxTheme
}
#[cfg(test)]