theme2.rs
1use gpui2::HighlightStyle;
2use std::sync::Arc;
3
4pub struct Theme {
5 pub editor: Editor,
6}
7
8pub struct Editor {
9 pub syntax: Arc<SyntaxTheme>,
10}
11
12#[derive(Default)]
13pub struct SyntaxTheme {
14 pub highlights: Vec<(String, HighlightStyle)>,
15}
16
17impl SyntaxTheme {
18 pub fn new(highlights: Vec<(String, HighlightStyle)>) -> Self {
19 Self { highlights }
20 }
21}