From 8b29ee6033ddd9b619eb9ae2738b755fd0f0e1d2 Mon Sep 17 00:00:00 2001 From: edwloef Date: Mon, 10 Mar 2025 23:43:18 +0100 Subject: [PATCH] Add `variable.special` color to Gruvbox themes (#26271) This adds the `variable.special` color to the Gruvbox family of themes, which colors special variables (in Rust's case `self`) differently than normal ones. The colors were taken from the old Gruvbox `variable` highlighting (see https://github.com/zed-industries/zed/pull/25464). before: ![image](https://github.com/user-attachments/assets/3f329ac0-fbdf-480c-9074-5db99591f4e1) ![image](https://github.com/user-attachments/assets/43efdddd-7daf-440f-8c11-d6279330912a) after: ![image](https://github.com/user-attachments/assets/052c05b8-55c5-495a-a9cc-a5f73aa5aa00) ![image](https://github.com/user-attachments/assets/f598b75f-8d2d-4710-b804-9282de9f8d15) fixes half of https://github.com/zed-industries/zed/issues/26206. Since I don't use the Ayu themes I'd prefer someone who knows what looks good there does those changes. Release Notes: - Gruvbox themes: Added a color for `@variable.special` syntax highlights. --- assets/themes/gruvbox/gruvbox.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/assets/themes/gruvbox/gruvbox.json b/assets/themes/gruvbox/gruvbox.json index f1a6b5c519ba2feefd0156efd01adb5b59913abc..e0d0b0af60a27b8e8568635749ff0dac67faf391 100644 --- a/assets/themes/gruvbox/gruvbox.json +++ b/assets/themes/gruvbox/gruvbox.json @@ -383,6 +383,11 @@ "font_style": null, "font_weight": null }, + "variable.special": { + "color": "#83a598ff", + "font_style": null, + "font_weight": null + }, "variant": { "color": "#83a598ff", "font_style": null, @@ -771,6 +776,11 @@ "font_style": null, "font_weight": null }, + "variable.special": { + "color": "#83a598ff", + "font_style": null, + "font_weight": null + }, "variant": { "color": "#83a598ff", "font_style": null, @@ -1159,6 +1169,11 @@ "font_style": null, "font_weight": null }, + "variable.special": { + "color": "#83a598ff", + "font_style": null, + "font_weight": null + }, "variant": { "color": "#83a598ff", "font_style": null, @@ -1547,6 +1562,11 @@ "font_style": null, "font_weight": null }, + "variable.special": { + "color": "#066578ff", + "font_style": null, + "font_weight": null + }, "variant": { "color": "#0b6678ff", "font_style": null, @@ -1935,6 +1955,11 @@ "font_style": null, "font_weight": null }, + "variable.special": { + "color": "#066578ff", + "font_style": null, + "font_weight": null + }, "variant": { "color": "#0b6678ff", "font_style": null, @@ -2323,6 +2348,11 @@ "font_style": null, "font_weight": null }, + "variable.special": { + "color": "#066578ff", + "font_style": null, + "font_weight": null + }, "variant": { "color": "#0b6678ff", "font_style": null,