Checkpoint
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
use gpui2::HighlightStyle;
|
||||
use std::sync::Arc;
|
||||
|
||||
pub struct Theme {
|
||||
pub editor: Editor,
|
||||
}
|
||||
|
||||
pub struct Editor {
|
||||
pub syntax: Arc<SyntaxTheme>,
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct SyntaxTheme {
|
||||
pub highlights: Vec<(String, HighlightStyle)>,
|
||||
}
|
||||
|
||||
impl SyntaxTheme {
|
||||
pub fn new(highlights: Vec<(String, HighlightStyle)>) -> Self {
|
||||
Self { highlights }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user