Properly emit UserHighlightStyle
s
This commit is contained in:
parent
ff19a0ca18
commit
34e31fd489
13 changed files with 786 additions and 130 deletions
|
@ -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 ayu() -> UserThemeFamily {
|
||||
|
@ -65,9 +65,27 @@ pub fn ayu() -> UserThemeFamily {
|
|||
},
|
||||
syntax: Some(UserSyntaxTheme {
|
||||
highlights: vec![
|
||||
("something".into(), rgba(0xfa8d3eff).into()),
|
||||
("punctuation".into(), rgba(0x787b8099).into()),
|
||||
("comment".into(), rgba(0x787b8099).into()),
|
||||
(
|
||||
"something".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xfa8d3eff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"comment".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x787b8099).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x787b8099).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
],
|
||||
}),
|
||||
},
|
||||
|
@ -124,9 +142,27 @@ pub fn ayu() -> UserThemeFamily {
|
|||
},
|
||||
syntax: Some(UserSyntaxTheme {
|
||||
highlights: vec![
|
||||
("something".into(), rgba(0xffad65ff).into()),
|
||||
("comment".into(), rgba(0xb8cfe680).into()),
|
||||
("punctuation".into(), rgba(0xb8cfe680).into()),
|
||||
(
|
||||
"punctuation".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xb8cfe680).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"something".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xffad65ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"comment".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xb8cfe680).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
],
|
||||
}),
|
||||
},
|
||||
|
@ -183,9 +219,27 @@ pub fn ayu() -> UserThemeFamily {
|
|||
},
|
||||
syntax: Some(UserSyntaxTheme {
|
||||
highlights: vec![
|
||||
("comment".into(), rgba(0xabb5be8c).into()),
|
||||
("something".into(), rgba(0xff8f3fff).into()),
|
||||
("punctuation".into(), rgba(0xabb5be8c).into()),
|
||||
(
|
||||
"comment".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xabb5be8c).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xabb5be8c).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"something".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xff8f3fff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
],
|
||||
}),
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue