From 63c081d4568770c7fac371dc92715c290b9f244d Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Thu, 2 Oct 2025 20:49:41 +0800 Subject: [PATCH] editor: Improve inlay color border (#39353) Release Notes: - Improved inlay color border to more clearly. --- It was used `border_color`, that variable is often gray, which makes the border look blurred when mixed with other inlay color backgrounds. ## Before SCR-20251002-qrkt SCR-20251002-qrlt SCR-20251002-qrmw SCR-20251002-qroa SCR-20251002-qrsf SCR-20251002-qsaw ## After SCR-20251002-qqci SCR-20251002-qqdl SCR-20251002-qqev SCR-20251002-qqfs SCR-20251002-qqhb --------- Co-authored-by: Danilo Leal --- crates/editor/src/display_map/inlay_map.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/editor/src/display_map/inlay_map.rs b/crates/editor/src/display_map/inlay_map.rs index 3fcbb530be3af64c842c17ef49151995ad14c218..c4532a93f1d50e91dbd4791b4621b74ee0813cbe 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()