Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
editor: Consider experimental theme overrides for colorized bracket invalidation (#43602)
Finn Evers958f1098b77c
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex cd7a872f8c1..7cdd587db48 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -21565,12 +21565,22 @@ impl Editor {return Vec::new();}- theme::ThemeSettings::get_global(cx)+ let theme_settings = theme::ThemeSettings::get_global(cx);++ theme_settings.theme_overrides.get(cx.theme().name.as_ref()).map(|theme_style| &theme_style.accents).into_iter().flatten()+ .chain(+ theme_settings+ .experimental_theme_overrides+ .as_ref()+ .map(|overrides| &overrides.accents)+ .into_iter()+ .flatten(),+ ).flat_map(|accent| accent.0.clone()).collect()}