Confusing green background color in popup

Hi there

I encountered a very confusing and misleading coloring issue in the "navigate to implementations" popup. Assume there is a Java interface MyInterface with two implementations ImplementationA and ImplementationB. Further all Java files are opened in the editor.

If you show the "navigate to implementations" popup, both implementations will be colored with a light green background. This is very unfortunate, because test classes have also a green background. The color difference is very subtile and can be misleading.

If you close ImplementationA and show the "navigate to implementations" again, you'll notice that ImplementationA does not have a light green background anymore. Obviously that light green background denotes open files in the editor, right? Where can I disable or change this coloring issue?

Thanks,
Poke



Attachment(s):
Screen Shot 2015-04-09 at 10.56.45.png
4 comments
Comment actions Permalink

Do you have any customizations here?

http://i.imgur.com/Y8o1GPu.png

0
Comment actions Permalink

Thanks for your answer. No, there is no cusomization in File Colors.

I digged further into this issue and found that it is reproducible. It also happens on other machines, OS X or Windows. The light green background color is somehow indeed marking open files which is unfortunate. It does not happen with the "Dracula" theme but with the "Alloy, IDEA Theme" and the "IntelliJ" theme. Attached is a simple project showing this issue.

Thanks,
Poke



Attachment(s):
popup-color.zip
0
Comment actions Permalink

It's hardcoded and by design: https://github.com/JetBrains/intellij-community/blob/master/platform/lang-impl/src/com/intellij/ui/tabs/FileColorManagerImpl.java#L185-185 .
According to the comment support for Darcula is not implemented yet, so you don't see it with Darcula.

If you don't like this behavior, submit a request to make it configurable: http://youtrack.jetbrains.com/issues/IDEA .

There is a workaround, define custom scope for your sources and set this scope color to White, in this case IDEA will use your file scope color instead of the hardcoded default:

http://i.imgur.com/vnykGI3.png

http://i.imgur.com/3FOJPVN.png

0
Comment actions Permalink

Dude, you're the man! Thanks for sharing the exact code location. This hardcoded behavior is unfortunate, but easily fixable with your suggestion (but loosing the open file functionality). However the correct solution would be to make this customizable. I'll open a feature request.

Thanks again,
Poke

0

Please sign in to leave a comment.