FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.44k stars 637 forks source link

How to change color of diff lines? #1181

Open jamadagni opened 5 years ago

jamadagni commented 5 years ago

Hello. Please see this:

screenshot_20190124_211317

I find the bright red vs bright green currently used by ungit to show diffs to be very glaring and harsh on the eyes esp on the grey-based background. Please soften these to more sedate colours.

Is there a way for users to modify these colors? If not please provide one.

ylecuyer commented 5 years ago

You can make a grease monkey script that will override the d2h-ins and d2h-del CSS class to your need

jung-kim commented 5 years ago

As there is no exposed way of changing color scheme, @ylecuyer s suggestion is probably the most practical and quickest.

If you want to do it properly you can either edit css at Ungit to override the existing color scheme. Or you can work with https://github.com/rtfpessoa/diff2html to allow different themes and we can some how expose within ungit as we use that module to do generate git diff to html code

jamadagni commented 5 years ago

Thank you both for your replies. However I do not know how to create such a Greasemonkey script or where/how to install it. Also I am using ungit within Atom. Can you please guide me how to do this?