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

magit-diff-whitespace-warning is invisible #28

Open
luispauloml opened this issue Apr 29, 2022 · 3 comments
Open

magit-diff-whitespace-warning is invisible #28

luispauloml opened this issue Apr 29, 2022 · 3 comments

Comments

@luispauloml
Copy link
Contributor

magit-diff-whitespace-warning is set to nano-default which makes it invisible against the background in which it is intended to appear.

magit-diff-whitespace-warning

@rougier
Copy link
Owner

rougier commented May 12, 2022

Thanks for the report. We could use 'nano-faded' or 'highlight' instead, what do you think?

@luispauloml
Copy link
Contributor Author

Several magit-diff faces and magit-section-highlight, which are the backgrounds on which magit-diff-whitespace-warning appears, already inherit from highlight, thus this change would render it invisible again.

nano-theme/nano-theme.el

Lines 1332 to 1342 in 06d7c94

'(magit-blame-highlight ((t (:inherit (highlight)))))
'(magit-diff-added-highlight ((t (:inherit (highlight nano-salient nano-strong)))))
'(magit-diff-base-highlight ((t (:inherit (highlight)))))
'(magit-diff-context-highlight ((t (:inherit (highlight nano-faded)))))
'(magit-diff-file-heading-highlight ((t (:inherit (highlight nano-strong)))))
'(magit-diff-hunk-heading-highlight ((t (:inherit (nano-default)))))
'(magit-diff-our-highlight ((t (:inherit (highlight)))))
'(magit-diff-removed-highlight ((t (:inherit (highlight nano-popout nano-strong)))))
'(magit-diff-revision-summary-highlight ((t (:inherit ()))))
'(magit-diff-their-highlight ((t (:inherit (highlight)))))
'(magit-section-highlight ((t (:inherit (highlight)))))

As for nano-faded, it wouldn't work because it does not change the background, so it would have to be nano-faded-i. The result looks good on nano-dark, but I think it is too dark for nano-light, which is the one I use:

nano-faded-i

If it would change to nano-faded-i, I would still keep using trailing-whitespace in nano-light.

In fact, I liked the result for both themes, as seen in opening of this issue, so removing customization of magit-diff-whitespace-warning from nano-theme in order for it to keep being trailing-whitespace is my suggestion for both themes

rougier added a commit that referenced this issue May 15, 2022
@rougier
Copy link
Owner

rougier commented May 15, 2022

Thanks. I've pushed a fix (using nano-subtle)

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

2 participants