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.

Fine-tune hunk controls block (#18543)

Danilo Leal053e31994fd5
diff --git a/crates/editor/src/hunk_diff.rs b/crates/editor/src/hunk_diff.rs
index 4e7a0f05f4a..2ccd60c668d 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({