From 2ef395470018e068147f92cc97f62a8d80fc13a9 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Fri, 8 Dec 2023 16:04:58 -0500 Subject: [PATCH] Fix function colors in Gruvbox themes --- crates/theme2/src/themes/gruvbox.rs | 12 ++++++------ crates/theme_importer/src/vscode/syntax.rs | 6 +++++- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/crates/theme2/src/themes/gruvbox.rs b/crates/theme2/src/themes/gruvbox.rs index 6d0851bbee..9e1a2d86e8 100644 --- a/crates/theme2/src/themes/gruvbox.rs +++ b/crates/theme2/src/themes/gruvbox.rs @@ -124,7 +124,7 @@ pub fn gruvbox() -> UserThemeFamily { ( "function".into(), UserHighlightStyle { - color: Some(rgba(0xfabd2fff).into()), + color: Some(rgba(0x8ec07cff).into()), ..Default::default() }, ), @@ -410,7 +410,7 @@ pub fn gruvbox() -> UserThemeFamily { ( "function".into(), UserHighlightStyle { - color: Some(rgba(0xfabd2fff).into()), + color: Some(rgba(0x8ec07cff).into()), ..Default::default() }, ), @@ -696,7 +696,7 @@ pub fn gruvbox() -> UserThemeFamily { ( "function".into(), UserHighlightStyle { - color: Some(rgba(0xfabd2fff).into()), + color: Some(rgba(0x8ec07cff).into()), ..Default::default() }, ), @@ -982,7 +982,7 @@ pub fn gruvbox() -> UserThemeFamily { ( "function".into(), UserHighlightStyle { - color: Some(rgba(0xb57614ff).into()), + color: Some(rgba(0x427b58ff).into()), ..Default::default() }, ), @@ -1268,7 +1268,7 @@ pub fn gruvbox() -> UserThemeFamily { ( "function".into(), UserHighlightStyle { - color: Some(rgba(0xb57614ff).into()), + color: Some(rgba(0x427b58ff).into()), ..Default::default() }, ), @@ -1554,7 +1554,7 @@ pub fn gruvbox() -> UserThemeFamily { ( "function".into(), UserHighlightStyle { - color: Some(rgba(0xb57614ff).into()), + color: Some(rgba(0x427b58ff).into()), ..Default::default() }, ), diff --git a/crates/theme_importer/src/vscode/syntax.rs b/crates/theme_importer/src/vscode/syntax.rs index f055fc3551..fb64048431 100644 --- a/crates/theme_importer/src/vscode/syntax.rs +++ b/crates/theme_importer/src/vscode/syntax.rs @@ -202,7 +202,11 @@ impl ZedSyntaxToken { "markup.bold markup.italic", ], ZedSyntaxToken::Enum => vec!["support.type.enum"], - ZedSyntaxToken::Function => vec!["entity.name.function", "variable.function"], + ZedSyntaxToken::Function => vec![ + "entity.function", + "entity.name.function", + "variable.function", + ], ZedSyntaxToken::Hint => vec![], ZedSyntaxToken::Keyword => vec![ "keyword",