Use status colors for diagnostic underlines

Max Brunsfeld created

Change summary

crates/zed/assets/themes/_base.toml | 5 +++++
crates/zed/assets/themes/black.toml | 4 ----
crates/zed/assets/themes/dark.toml  | 4 ----
crates/zed/assets/themes/light.toml | 4 ----
4 files changed, 5 insertions(+), 12 deletions(-)

Detailed changes

crates/zed/assets/themes/_base.toml 🔗

@@ -226,3 +226,8 @@ line_number = "$text.2.color"
 line_number_active = "$text.0.color"
 selection = "$selection.host"
 guest_selections = "$selection.guests"
+
+error_underline = "$status.bad"
+warning_underline = "$status.warn"
+info_underline = "$status.info"
+hint_underline = "$status.info"

crates/zed/assets/themes/black.toml 🔗

@@ -39,10 +39,6 @@ bad = "#b7372e"
 active_line = "#00000033"
 hover = "#00000033"
 
-[editor]
-error_underline = "#ff0000"
-warning_underline = "#00ffff"
-
 [editor.syntax]
 keyword = { color = "#0086c0", weight = "bold" }
 function = "#dcdcaa"

crates/zed/assets/themes/dark.toml 🔗

@@ -39,10 +39,6 @@ bad = "#b7372e"
 active_line = "#00000022"
 hover = "#00000033"
 
-[editor]
-error_underline = "#ff0000"
-warning_underline = "#00ffff"
-
 [editor.syntax]
 keyword = { color = "#0086c0", weight = "bold" }
 function = "#dcdcaa"

crates/zed/assets/themes/light.toml 🔗

@@ -39,10 +39,6 @@ bad = "#b7372e"
 active_line = "#00000008"
 hover = "#0000000D"
 
-[editor]
-error_underline = "#ff0000"
-warning_underline = "#00ffff"
-
 [editor.syntax]
 keyword = { color = "#0000fa", weight = "bold" }
 function = "#795e26"