Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

editor: Improve inlay color border (#39353)

Jason Lee63c081d45687
diff --git a/crates/editor/src/display_map/inlay_map.rs b/crates/editor/src/display_map/inlay_map.rs
index 3fcbb530be3..c4532a93f1d 100644
--- a/crates/editor/src/display_map/inlay_map.rs
+++ b/crates/editor/src/display_map/inlay_map.rs
@@ -387,7 +387,13 @@ impl<'a> Iterator for InlayChunks<'a> {
.right_1()
.size_3()
.border_1()
- .border_color(cx.theme().colors().border)
+ .border_color(
+ if cx.theme().appearance().is_light() {
+ gpui::black().opacity(0.5)
+ } else {
+ gpui::white().opacity(0.5)
+ },
+ )
.bg(color),
)
.into_any_element()