Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change color of diff lines? #1181

Open
jamadagni opened this issue Jan 24, 2019 · 3 comments
Open

How to change color of diff lines? #1181

jamadagni opened this issue Jan 24, 2019 · 3 comments

Comments

@jamadagni
Copy link

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
Copy link
Contributor

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

@jung-kim
Copy link
Collaborator

jung-kim commented Jan 24, 2019

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
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants