Checkpoint
This commit is contained in:
parent
a0b667a2ca
commit
56462ef793
23 changed files with 4833 additions and 2536 deletions
21
crates/theme2/src/theme2.rs
Normal file
21
crates/theme2/src/theme2.rs
Normal file
|
@ -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 }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue