Properly emit UserHighlightStyles

This commit is contained in:
Marshall Bowers 2023-11-09 12:59:20 -05:00
parent ff19a0ca18
commit 34e31fd489
13 changed files with 786 additions and 130 deletions

View file

@ -4,8 +4,8 @@
use gpui::rgba;
use crate::{
Appearance, StatusColorsRefinement, ThemeColorsRefinement, UserTheme, UserThemeFamily,
UserThemeStylesRefinement,
Appearance, StatusColorsRefinement, ThemeColorsRefinement, UserHighlightStyle, UserSyntaxTheme,
UserTheme, UserThemeFamily, UserThemeStylesRefinement,
};
pub fn dracula() -> UserThemeFamily {
@ -66,9 +66,27 @@ pub fn dracula() -> UserThemeFamily {
},
syntax: Some(UserSyntaxTheme {
highlights: vec![
("comment".into(), rgba(0x6272a4ff).into()),
("something".into(), rgba(0xf8f8f2ff).into()),
("punctuation".into(), rgba(0xff79c6ff).into()),
(
"comment".into(),
UserHighlightStyle {
color: Some(rgba(0x6272a4ff).into()),
..Default::default()
},
),
(
"punctuation".into(),
UserHighlightStyle {
color: Some(rgba(0xff79c6ff).into()),
..Default::default()
},
),
(
"something".into(),
UserHighlightStyle {
color: Some(rgba(0xf8f8f2ff).into()),
..Default::default()
},
),
],
}),
},