Checkpoint

This commit is contained in:
Marshall Bowers 2023-10-24 17:29:03 +02:00
parent 09866ec3e9
commit 4740d6ed61
4 changed files with 43 additions and 52 deletions

View file

@ -5,7 +5,7 @@ mod themes;
pub use registry::*;
pub use settings::*;
use gpui2::{Hsla, SharedString};
use gpui2::{HighlightStyle, Hsla, SharedString};
use std::sync::Arc;
pub struct Theme {
@ -78,12 +78,13 @@ pub struct Theme {
pub player: [PlayerTheme; 8],
}
#[derive(Clone, Copy)]
#[derive(Clone)]
pub struct SyntaxTheme {
pub comment: Hsla,
pub string: Hsla,
pub function: Hsla,
pub keyword: Hsla,
pub highlights: Vec<(String, HighlightStyle)>,
}
#[derive(Clone, Copy)]
@ -93,7 +94,6 @@ pub struct PlayerTheme {
}
pub struct ThemeMetadata {
pub id: usize,
pub name: SharedString,
pub is_light: bool,
}