jkaving/intellij-colors-solarized

Wrong Parameter Or Argument Colors For Variables

Closed this issue · 7 comments

Variables which are arguments or parameters, have wrong colors in PHP. Regular variable declarations are correct (blue). See the picture below for the problem:

screenshot from 2016-05-03 18-25-28

I am using IntelliJ version 2016.1.1

Which color is wrong?

Here is how it works:

  • blue - variable declared inside the method
  • orange - method parameter

Before both were blue, but this was changed to allow easily seeing which variables come from outside of method.

The color of the method parameter is wrong. The color above is the default color if no color was specified (brownish). All old syntax themes have these issues because Jetbrains changed something with the version 15. I also use the material syntax theme for Jetbrains, it had the same issue (thus the same color for method parameters) but was updated recently.

Can you please post screenshot of same code with Solarized Dark theme?

And to compare screenshots from Solarized Light & Solarized Dark from previous PhpStorm versions where it worked as you expect.

I think we just need to add an element for PHP_PARAMETER.
Like this commit for the material theme.

Now I realize that commit 8a50bbe by @aik099 actually added the PHP_PARAMETER - but only for Solarized Dark.
I will add it for Solarized Light as well.

Wow, thanks for the quick fix!