From cf42d95af66f54cf34cfa94a99180221847b5f19 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Fri, 8 Dec 2023 17:41:11 -0500 Subject: [PATCH] Use the diff status colors defined in the theme (#3569) This PR updates the diff status colors to use the ones defined in the theme instead of placeholder colors. Release Notes: - N/A --- crates/editor2/src/element.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/editor2/src/element.rs b/crates/editor2/src/element.rs index ad66ed8090749ab3d69b71a9aa30d7b77e701465..73f610893c631aa0c68ce50884f496374fe05594 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 hack DiffHunkStatus::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(), );