From 053e31994fd5ffc99cd0a59404fb5c4fac4fd3c5 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Mon, 30 Sep 2024 18:33:20 +0200 Subject: [PATCH] Fine-tune hunk controls block (#18543) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR changes the undo icon and adds a background color so that indent lines don't bleed through the control block. Screenshot 2024-09-30 at 5 38 44 PM Release Notes: - N/A --- crates/editor/src/hunk_diff.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/crates/editor/src/hunk_diff.rs b/crates/editor/src/hunk_diff.rs index 4e7a0f05f..2ccd60c66 100644 --- a/crates/editor/src/hunk_diff.rs +++ b/crates/editor/src/hunk_diff.rs @@ -360,8 +360,11 @@ impl Editor { h_flex() .id(cx.block_id) - .w_full() .h(cx.line_height()) + .w_full() + .border_t_1() + .border_color(border_color) + .bg(cx.theme().colors().editor_background) .child( div() .id("gutter-strip") @@ -381,12 +384,10 @@ impl Editor { ) .child( h_flex() - .pl_1p5() + .pl_2() .pr_6() .size_full() .justify_between() - .border_t_1() - .border_color(border_color) .child( h_flex() .gap_1() @@ -513,7 +514,7 @@ impl Editor { }), ) .child( - IconButton::new("discard", IconName::RotateCcw) + IconButton::new("discard", IconName::Undo) .shape(IconButtonShape::Square) .icon_size(IconSize::Small) .tooltip({