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:
parent
18431051d9
commit
36a73d657a
54 changed files with 173 additions and 6832 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue