Closed tarsius closed 4 years ago
How can we get this moving forward? I'd love to get my diff-refinement in magit back. There certainly seem to be related issues filed, like https://github.com/bbatsov/zenburn-emacs/issues/305
I won't work on this in January, sorry.
No worries, take your time.
@tarsius Will you be coming back to this at some point?
@tarsius friendly ping. :)
I'll try to have a look ~ next two weeks.
I have tried to fix this without going as far as to completely revert the original change, but I did not succeed and so I have completely reverted it after all. I think you should merge this now.
If someone else would like to use darker colors for diffs, then here are my suggestions: Make the word-level differences darker and more saturated than the basic diff colors, and make the highlighted basic colors lighter than the basic diff colors. The current colors follow this logic already--just make every color darker.
Thanks!
This isn't done yet. Actually I haven't even begun to work on it yet and for now this pr only contains some preparatory commits.
Theming Magit faces is quite difficult. I have written a 1300 word text on the matter, and that merely mentions the things one has to be aware when doing so. If someone attempts to do it without reading and understanding that, then the likelihood of breaking functionality is very high, as has happened in #300.
Just because I have written that text doesn't mean it is easy for me to do that. Fixing the regression introduced by #300 will be difficult, if we don't just revert it. But I don't want to do that because I think the new base colors actually do look better.
And then I got side-tracked of course (see #315 #316). I don't know when I will return to this, so I will just mention what the issue is, in case there are bug reports:
It is wrong to use the same color for "word-level differences" (
diff-refine-*
) and highlighting (magit-diff-*-highlight
) of the current diff. The current diff, like any diff, may contain word-level differences; we don't want them to become invisible when we are "narrowing in" on them.