Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Choose appropriate player colors based on theme appearance
Marshall Bowers04ad19d01bcd
diff --git a/crates/theme2/src/registry.rs b/crates/theme2/src/registry.rsindex c8773ea08bc..5f576e51f08 100644--- a/crates/theme2/src/registry.rs+++ b/crates/theme2/src/registry.rs@@ -76,7 +76,10 @@ impl ThemeRegistry {system: SystemColors::default(),colors: theme_colors,status: status_colors,- player: PlayerColors::default(),+ player: match user_theme.appearance {+ Appearance::Light => PlayerColors::light(),+ Appearance::Dark => PlayerColors::dark(),+ },syntax: Arc::new(syntax_colors),},}