Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Enhance color logic for phantom elements to improve visual distinction based on collision status (#42710)
Libonb17b903c5746
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex 7cdd587db48..2577591d3f5 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -8420,8 +8420,14 @@ impl Editor {(true, true) => ui::IconName::DebugDisabledLogBreakpoint,};+ let color = cx.theme().colors();+let color = if is_phantom {- Color::Hint+ if collides_with_existing {+ Color::Custom(color.debugger_accent.blend(color.text.opacity(0.6)))+ } else {+ Color::Hint+ }} else if is_rejected {Color::Disabled} else {