git-plus icon indicating copy to clipboard operation
git-plus copied to clipboard

highlight as background?

Open voltuer opened this issue 9 years ago • 4 comments

Hello, i'm wondering if it would be possible to have diff highlight showed as text background instead of underline, like all other git clients out there, since it's easier to read?

cheers

voltuer avatar Oct 24 '16 13:10 voltuer

I wanted to open the exact same issue right now!

rumpelsepp avatar Oct 24 '16 14:10 rumpelsepp

See my answer on #523.

sharedprophet avatar Nov 08 '16 21:11 sharedprophet

@sharedprophet i see you can now disable diff, but we do want diff coloring, just as background instead as underline, do you think this could be possible?

voltuer avatar Feb 11 '17 02:02 voltuer

@sebfindling I explained how to do that in my answer on #523. With Atom 1.13.1 they changed the css to use "syntax--" as a prefix for all syntax css classes, so now it would be something like:

atom-text-editor {
  .syntax--markup.syntax--removed.syntax--diff {
    border-bottom: none!important;
    background-color: @syntax-color-removed;
  }
  .syntax--markup.syntax--added.syntax--diff {
    border-bottom: none!important;
    background-color: @syntax-color-added;
  }
}
  1. On Windows, open the main File menu. For Ubuntu, the Edit menu. On OS X, the Atom menu.
  2. Click Stylesheet... and it will open up the stylesheet where you can paste the above example to get whatever styling you want.

sharedprophet avatar Feb 11 '17 04:02 sharedprophet