// How one line of a diff is drawn, wherever it is read. // // A file added or taken away is a fact about the diff, not a failure, so the // two read by weight rather than by hue. The same three tokens serve the diff // itself and the few lines an anchored comment carries with it, so a comment // quoting a line looks like that line. /** The background a row carries, by which side of the diff it is on. */ export const ROW_STYLE = { add: 'bg-diff-add', delete: 'bg-diff-del', context: '', }; /** How the sign in the gutter is drawn. */ export const SIGN_STYLE = { add: 'text-diff-add-ink', delete: 'text-diff-del-ink', context: 'text-faint', }; /** The sign itself. A context line keeps the column and says nothing. */ export const SIGN = { add: '+', delete: '-', context: ' ' };