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
Unknown Object (File)
Mon, Apr 1, 4:16 PM
Unknown Object (File)
Sun, Mar 31, 11:29 AM
Unknown Object (File)
Sun, Mar 31, 11:29 AM
Unknown Object (File)
Sun, Mar 31, 11:29 AM
Unknown Object (File)
Sun, Mar 31, 11:29 AM
Unknown Object (File)
Sun, Mar 31, 2:15 AM
Unknown Object (File)
Mar 20 2024, 11:38 PM
Unknown Object (File)
Feb 5 2024, 4:59 AM
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