Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Use the diff status colors defined in the theme (#3569)
Marshall Bowerscf42d95af66f
diff --git a/crates/editor2/src/element.rs b/crates/editor2/src/element.rsindex ad66ed80907..73f610893c6 100644--- a/crates/editor2/src/element.rs+++ b/crates/editor2/src/element.rs@@ -824,8 +824,8 @@ impl EditorElement {};let color = match status {- DiffHunkStatus::Added => gpui::green(), // todo!("use the appropriate color")- DiffHunkStatus::Modified => gpui::yellow(), // todo!("use the appropriate color")+ DiffHunkStatus::Added => cx.theme().status().created,+ DiffHunkStatus::Modified => cx.theme().status().modified,//TODO: This rendering is entirely a horrible hackDiffHunkStatus::Removed => {@@ -842,7 +842,7 @@ impl EditorElement {cx.paint_quad(highlight_bounds,Corners::all(1. * line_height),- gpui::red(), // todo!("use the right color")+ cx.theme().status().deleted,Edges::default(),transparent_black(),);