tinted-theming / base16-emacs

Base16 themes for Emacs
MIT License
382 stars 76 forks source link

Foreground base04 is unreadable on background base03 with onedark theme #89

Closed kurnevsky closed 5 years ago

kurnevsky commented 5 years ago

I stumbled upon this using company - company-preview has foreground base04 and company-preview-common inherited background base03. Probably there are more cases when this combination is used. So the question is - should it be allowed? If not, what the best way to fix it?

belak commented 5 years ago

Do you have an example of what this looks like? Screenshots or a way to reproduce that effect are the easiest way to show me what's wrong.

kurnevsky commented 5 years ago

Here how it looks like when there is one possible completion: screenshot-2019-03-28-23:32:08

Here the suggestion has background base03 and foreground base04.

kurnevsky commented 5 years ago

I believe the same thing would happen with secondary-selection and docstrings. So the one way to fix it - override foreground color in secondary-selection (and region?). But I don't know how appropriate it would be. It also can be fixed for company only. If it should be fixed at all, of course. It's specific for onedark theme. For default-dark it looks like: screenshot-2019-03-28-23:59:33

kurnevsky commented 5 years ago

ok, I think I found a good solution. There is :distant-foreground property that changes foreground only if the text is not readable. It is very convenient for selections because it changes background without touching foreground. After the fix it looks like: screenshot-2019-03-29-09:43:13