zed/crates/storybook2/src
Marshall Bowers 36a73d657a
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)
2023-10-31 23:05:50 -04:00
..
stories Rework theme2 with new theme structure (#3194) 2023-10-31 22:23:00 -04:00
assets.rs Finish up ThemeRegistry and remove AnyAssetSource 2023-10-24 17:47:41 +02:00
components.rs Rename IntoAnyElement trait to Component 2023-10-26 12:46:52 +02:00
stories.rs Add a story showcasing the color scales 2023-10-30 17:31:15 -04:00
story.rs Add an example of colocating a story for a UI component with its definition 2023-10-10 15:30:16 -04:00
story_selector.rs Simplify AnyView 2023-10-31 16:16:30 +01:00
storybook2.rs Remove old Theme definition (#3195) 2023-10-31 23:05:50 -04:00