let (wash, mark, sign) = match change {
Change::Added => (theme.success.opacity(0.1), theme.success, "+"),
Change::Removed => (theme.danger.opacity(0.1), theme.danger, "-"),
Change::Context => (gpui::transparent_black(), theme.text_faint, " "),
};
div().flex().flex_row().gap(px(8.0)).bg(wash).font_family(theme.font_mono.clone())
.child(number(old)).child(number(new))
.child(div().text_color(mark).child(sign))
.child(text)- There is no diff component, and bezel never computes a diff: the rows arrive decided. No hunk folding, word-level marks, syntax highlighting or side-by-side panes.
- The palette also carries
diff_add,diff_delanddiff_hunk_bg. - Copy
apps/gallery/src/pages/agent/diff.rs.