Page MenuHomePhabricator

In Differential, give the "moved/copied from" gutter a more clear visual look
ClosedPublic

Authored by epriestley on Feb 20 2019, 12:44 PM.
Tags
None
Referenced Files
F18825639: D20197.diff
Thu, Oct 23, 11:12 PM
F18785980: D20197.diff
Tue, Oct 14, 4:33 PM
F18733898: D20197.diff
Tue, Sep 30, 10:44 PM
F18647587: D20197.id.diff
Sep 19 2025, 1:42 PM
F18642164: D20197.diff
Sep 18 2025, 10:44 PM
F18624825: D20197.id48229.diff
Sep 15 2025, 9:08 PM
F18153519: D20197.id48224.diff
Aug 14 2025, 7:43 PM
F18112463: D20197.id.diff
Aug 12 2025, 5:24 PM
Subscribers
None

Details

Summary

Depends on D20196. See PHI985. When empty, the "moved/copied" gutter currently renders with the same background color as the rest of the line. This can be misleading because it makes code look more indented than it is, especially if you're unfamiliar with the tool:

Screen Shot 2019-02-20 at 4.29.15 AM.png (219×187 px, 13 KB)

If we remove this misleading coloration, we get a white gap. This is more clear, but looks a little odd:

Screen Shot 2019-02-20 at 4.29.30 AM.png (275×290 px, 29 KB)

Instead, give this gutter a subtle background fill in all casses, to make it more clear that it's a separate gutter region, not a part of the text diff:

Screen Shot 2019-02-20 at 4.36.25 AM.png (338×269 px, 16 KB)

Test Plan

See screenshots. Copied text from a diff, added/removed inlines, etc.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable