diff --git a/crates/editor/src/hunk_diff.rs b/crates/editor/src/hunk_diff.rs index bdd610a231f6d7..0e9fbc0ab37dc4 100644 --- a/crates/editor/src/hunk_diff.rs +++ b/crates/editor/src/hunk_diff.rs @@ -455,7 +455,6 @@ impl Editor { h_flex() .id(cx.block_id) .block_mouse_down() - // .h(cx.line_height()) .pr_5() .w_full() .justify_end() @@ -470,10 +469,10 @@ impl Editor { .rounded_b_lg() .bg(cx.theme().colors().editor_background) .shadow(smallvec::smallvec![gpui::BoxShadow { - color: gpui::hsla(0.0, 0.0, 0.0, 0.15), + color: gpui::hsla(0.0, 0.0, 0.0, 0.1), blur_radius: px(1.0), spread_radius: px(1.0), - offset: gpui::point(px(0.), px(2.0)), + offset: gpui::point(px(0.), px(1.5)), }]) .when(!is_branch_buffer, |row| { row.child( diff --git a/crates/ui/src/components/button/button_like.rs b/crates/ui/src/components/button/button_like.rs index 4ca0952678c4c3..1eff4feb72adfe 100644 --- a/crates/ui/src/components/button/button_like.rs +++ b/crates/ui/src/components/button/button_like.rs @@ -85,36 +85,6 @@ impl TintColor { } } -// To remove? - -// fn added_hunk_color(cx: &WindowContext) -> Hsla { -// let mut created_color = cx.theme().status().git().created; -// created_color.fade_out(0.7); -// created_color -// } - -// fn accept_hunk_color(cx: &WindowContext) -> Hsla { -// cx.theme() -// .colors() -// .editor_background -// .blend(added_hunk_color(cx)) -// .opacity(1.0) -// } - -// fn deleted_hunk_color(cx: &WindowContext) -> Hsla { -// let mut deleted_color = cx.theme().status().deleted; -// deleted_color.fade_out(0.7); -// deleted_color -// } - -// fn discard_hunk_color(cx: &WindowContext) -> Hsla { -// cx.theme() -// .colors() -// .editor_background -// .blend(deleted_hunk_color(cx)) -// .opacity(1.0) -// } - impl From for Color { fn from(tint: TintColor) -> Self { match tint {