Extend UserSyntax to allow font_style and font_weight to be specified

Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
This commit is contained in:
Nate Butler
2023-11-09 13:46:08 -05:00
co-authored by Marshall Bowers
parent 978cff8095
commit ff053890cf
11 changed files with 111 additions and 15 deletions
+3
View File
@@ -69,6 +69,7 @@ pub fn ayu() -> UserThemeFamily {
"comment".into(),
UserHighlightStyle {
color: Some(rgba(0x787b8099).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),
@@ -146,6 +147,7 @@ pub fn ayu() -> UserThemeFamily {
"comment".into(),
UserHighlightStyle {
color: Some(rgba(0xb8cfe680).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),
@@ -223,6 +225,7 @@ pub fn ayu() -> UserThemeFamily {
"comment".into(),
UserHighlightStyle {
color: Some(rgba(0xabb5be8c).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),
+6
View File
@@ -68,6 +68,7 @@ pub fn gruvbox() -> UserThemeFamily {
"comment".into(),
UserHighlightStyle {
color: Some(rgba(0x928374ff).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),
@@ -144,6 +145,7 @@ pub fn gruvbox() -> UserThemeFamily {
"comment".into(),
UserHighlightStyle {
color: Some(rgba(0x928374ff).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),
@@ -220,6 +222,7 @@ pub fn gruvbox() -> UserThemeFamily {
"comment".into(),
UserHighlightStyle {
color: Some(rgba(0x928374ff).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),
@@ -296,6 +299,7 @@ pub fn gruvbox() -> UserThemeFamily {
"comment".into(),
UserHighlightStyle {
color: Some(rgba(0x928374ff).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),
@@ -372,6 +376,7 @@ pub fn gruvbox() -> UserThemeFamily {
"comment".into(),
UserHighlightStyle {
color: Some(rgba(0x928374ff).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),
@@ -448,6 +453,7 @@ pub fn gruvbox() -> UserThemeFamily {
"comment".into(),
UserHighlightStyle {
color: Some(rgba(0x928374ff).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),
+2
View File
@@ -69,6 +69,7 @@ pub fn night_owl() -> UserThemeFamily {
"comment".into(),
UserHighlightStyle {
color: Some(rgba(0x637777ff).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),
@@ -147,6 +148,7 @@ pub fn night_owl() -> UserThemeFamily {
"comment".into(),
UserHighlightStyle {
color: Some(rgba(0x989fb1ff).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),
+3
View File
@@ -69,6 +69,7 @@ pub fn palenight() -> UserThemeFamily {
"comment".into(),
UserHighlightStyle {
color: Some(rgba(0x687097ff).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),
@@ -146,6 +147,7 @@ pub fn palenight() -> UserThemeFamily {
"comment".into(),
UserHighlightStyle {
color: Some(rgba(0x687097ff).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),
@@ -223,6 +225,7 @@ pub fn palenight() -> UserThemeFamily {
"comment".into(),
UserHighlightStyle {
color: Some(rgba(0x687097ff).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),
+6
View File
@@ -70,6 +70,7 @@ pub fn rose_pine() -> UserThemeFamily {
"comment".into(),
UserHighlightStyle {
color: Some(rgba(0x6e6a86ff).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),
@@ -77,6 +78,7 @@ pub fn rose_pine() -> UserThemeFamily {
"something".into(),
UserHighlightStyle {
color: Some(rgba(0xebbcbaff).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),
@@ -148,6 +150,7 @@ pub fn rose_pine() -> UserThemeFamily {
"comment".into(),
UserHighlightStyle {
color: Some(rgba(0x6e6a86ff).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),
@@ -155,6 +158,7 @@ pub fn rose_pine() -> UserThemeFamily {
"something".into(),
UserHighlightStyle {
color: Some(rgba(0xea9a97ff).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),
@@ -226,6 +230,7 @@ pub fn rose_pine() -> UserThemeFamily {
"comment".into(),
UserHighlightStyle {
color: Some(rgba(0x9893a5ff).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),
@@ -233,6 +238,7 @@ pub fn rose_pine() -> UserThemeFamily {
"something".into(),
UserHighlightStyle {
color: Some(rgba(0xd7827dff).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),
+3
View File
@@ -65,6 +65,7 @@ pub fn solarized() -> UserThemeFamily {
"comment".into(),
UserHighlightStyle {
color: Some(rgba(0x657b83ff).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),
@@ -72,6 +73,7 @@ pub fn solarized() -> UserThemeFamily {
"something".into(),
UserHighlightStyle {
color: Some(rgba(0x93a1a1ff).into()),
font_weight: Some(UserFontWeight(700.0)),
..Default::default()
},
),
@@ -135,6 +137,7 @@ pub fn solarized() -> UserThemeFamily {
"comment".into(),
UserHighlightStyle {
color: Some(rgba(0x93a1a1ff).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),
+1
View File
@@ -55,6 +55,7 @@ pub fn synthwave_84() -> UserThemeFamily {
"comment".into(),
UserHighlightStyle {
color: Some(rgba(0x848bbdff).into()),
font_style: Some(UserFontStyle::Italic),
..Default::default()
},
),