intellij-colors-solarized
intellij-colors-solarized copied to clipboard
Make static methods italic
TIL by default IntelliJ shows static methods with italic font.
I find it's useful to see that when method is static or not.
I suggest to make it italic in solarized theme too.
Yes, this is definitely a bug with static methods.
Also, some static variables also have this bug, if the are assigned another value (pay attention to the variable laksa
, which can be found in 2 places):
- CORRECT, Default theme:
2. CORRECT, solarized theme:
3. BUG, solarized theme (italic suddenly disappeared):
@soshial , bug where, in this project (theme) or the IntelliJ IDEA?
If something is italic in default theme, but not this theme, then it's not a bug in theme.
If something is set italic in theme, but it doesn't work, then bug is on IntelliJ IDEA side.
Sveiks :) Well, I thought, that if something was italic in default theme, but not in this theme, then IT IS a bug in solarized theme.
Some time ago I also thought like that, but on many occasions since then I've seen that decisions made during this theme development do not always need to be mapped into default theme of the IDE.
As for italic for static
I vote :-1: because that would mean $this->assertEquals(...)
would be in italic because PHPUnit assertion methods are defined as static.
First, what is so wrong to be italic? In all JetBrains products static methods are italic, including PHP:
Second, static methods in PHP should be used with
::
, i.e. self::assertThat()
.
I addressed this issue in this pull request: #179.
I've now made a commit that makes the changes suggested in #179. It seems reasonable to follow the behaviour of the default IntelliJ color schemes when it comes to italics for static fields and methods.