ZIm/crates/gpui/src/elements
Smit Barmase 501b539286
gpui: Fix background for WrappedLine (#27980)
https://github.com/zed-industries/zed/pull/26454 In this PR, we
separated painting for text line into two parts: `paint` and
`paint_background`. This allows selections to appear in front of the
text background but behind the text itself in the editor.

The `paint_background` method was implemented for `ShapedLine` but not
for `WrappedLine`. This PR adds that, fixing the background rendering
for inline code blocks in Markdown, as they use `WrappedLine`.

Before:
<img width="160" alt="image"
src="https://github.com/user-attachments/assets/81466c63-6835-4128-ba22-1b63f5fd7b1f"
/>

After:
<img width="160" alt="image"
src="https://github.com/user-attachments/assets/3b7044d7-265b-45db-904c-3b70fdf421fe"
/>

Release Notes:

- Fixed missing background for inline code blocks in the editor hover
tooltip.
2025-04-03 05:09:42 +05:30
..
anchored.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
animation.rs Add StatusToast & the ToastLayer (#26232) 2025-03-06 20:37:54 +00:00
canvas.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
common.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
deferred.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
div.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
img.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
list.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
mod.rs Add a simple set of default colors to gpui (#17110) 2024-08-29 16:50:03 -04:00
surface.rs Switch fully to Rust Livekit (redux) (#27126) 2025-03-28 17:58:23 +00:00
svg.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
text.rs gpui: Fix background for WrappedLine (#27980) 2025-04-03 05:09:42 +05:30
uniform_list.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00