Finish passing Syntax from VSCode themes to Zed Themes

Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
This commit is contained in:
Nate Butler 2023-11-09 14:41:26 -05:00
parent ff053890cf
commit 54157eb99a
20 changed files with 1797 additions and 470 deletions

View file

@ -3,9 +3,10 @@
use gpui::rgba;
#[allow(unused)]
use crate::{
Appearance, StatusColorsRefinement, ThemeColorsRefinement, UserHighlightStyle, UserSyntaxTheme,
UserTheme, UserThemeFamily, UserThemeStylesRefinement,
Appearance, StatusColorsRefinement, ThemeColorsRefinement, UserFontStyle, UserFontWeight,
UserHighlightStyle, UserSyntaxTheme, UserTheme, UserThemeFamily, UserThemeStylesRefinement,
};
pub fn palenight() -> UserThemeFamily {
@ -65,6 +66,20 @@ pub fn palenight() -> UserThemeFamily {
},
syntax: Some(UserSyntaxTheme {
highlights: vec![
(
"attribute".into(),
UserHighlightStyle {
color: Some(rgba(0xffcb6bff).into()),
..Default::default()
},
),
(
"boolean".into(),
UserHighlightStyle {
color: Some(rgba(0x82aaffff).into()),
..Default::default()
},
),
(
"comment".into(),
UserHighlightStyle {
@ -74,16 +89,37 @@ pub fn palenight() -> UserThemeFamily {
},
),
(
"something".into(),
"constant".into(),
UserHighlightStyle {
color: Some(rgba(0x7fcac3ff).into()),
color: Some(rgba(0x82aaffff).into()),
..Default::default()
},
),
(
"punctuation".into(),
"function".into(),
UserHighlightStyle {
color: Some(rgba(0xd3413dff).into()),
color: Some(rgba(0x82aaffff).into()),
..Default::default()
},
),
(
"keyword".into(),
UserHighlightStyle {
color: Some(rgba(0xc792eaff).into()),
..Default::default()
},
),
(
"string".into(),
UserHighlightStyle {
color: Some(rgba(0xc3e88dff).into()),
..Default::default()
},
),
(
"variable".into(),
UserHighlightStyle {
color: Some(rgba(0xff5571ff).into()),
..Default::default()
},
),
@ -143,6 +179,20 @@ pub fn palenight() -> UserThemeFamily {
},
syntax: Some(UserSyntaxTheme {
highlights: vec![
(
"attribute".into(),
UserHighlightStyle {
color: Some(rgba(0xffcb6bff).into()),
..Default::default()
},
),
(
"boolean".into(),
UserHighlightStyle {
color: Some(rgba(0x82aaffff).into()),
..Default::default()
},
),
(
"comment".into(),
UserHighlightStyle {
@ -152,16 +202,37 @@ pub fn palenight() -> UserThemeFamily {
},
),
(
"something".into(),
"constant".into(),
UserHighlightStyle {
color: Some(rgba(0x7fcac3ff).into()),
color: Some(rgba(0x82aaffff).into()),
..Default::default()
},
),
(
"punctuation".into(),
"function".into(),
UserHighlightStyle {
color: Some(rgba(0xd3413dff).into()),
color: Some(rgba(0x82aaffff).into()),
..Default::default()
},
),
(
"keyword".into(),
UserHighlightStyle {
color: Some(rgba(0xc792eaff).into()),
..Default::default()
},
),
(
"string".into(),
UserHighlightStyle {
color: Some(rgba(0xc3e88dff).into()),
..Default::default()
},
),
(
"variable".into(),
UserHighlightStyle {
color: Some(rgba(0xff5571ff).into()),
..Default::default()
},
),
@ -221,6 +292,20 @@ pub fn palenight() -> UserThemeFamily {
},
syntax: Some(UserSyntaxTheme {
highlights: vec![
(
"attribute".into(),
UserHighlightStyle {
color: Some(rgba(0xffcb6bff).into()),
..Default::default()
},
),
(
"boolean".into(),
UserHighlightStyle {
color: Some(rgba(0x82aaffff).into()),
..Default::default()
},
),
(
"comment".into(),
UserHighlightStyle {
@ -230,16 +315,37 @@ pub fn palenight() -> UserThemeFamily {
},
),
(
"something".into(),
"constant".into(),
UserHighlightStyle {
color: Some(rgba(0x7fcac3ff).into()),
color: Some(rgba(0x82aaffff).into()),
..Default::default()
},
),
(
"punctuation".into(),
"function".into(),
UserHighlightStyle {
color: Some(rgba(0xd3413dff).into()),
color: Some(rgba(0x82aaffff).into()),
..Default::default()
},
),
(
"keyword".into(),
UserHighlightStyle {
color: Some(rgba(0xc792eaff).into()),
..Default::default()
},
),
(
"string".into(),
UserHighlightStyle {
color: Some(rgba(0xc3e88dff).into()),
..Default::default()
},
),
(
"variable".into(),
UserHighlightStyle {
color: Some(rgba(0xff5571ff).into()),
..Default::default()
},
),