OneDark-Pro icon indicating copy to clipboard operation
OneDark-Pro copied to clipboard

color correction - PHP

Open mcanepa opened this issue 5 years ago • 18 comments

I've noticed some php inconsistencies between this theme and atom's. Here is a sample image

Captura de pantalla de 2021-04-08 19-17-58

mcanepa avatar Apr 08 '21 22:04 mcanepa

I don't think it's necessary to modify it. It could be two styles But the begin I think can be red image

Binaryify avatar Apr 09 '21 03:04 Binaryify

I agree that it could be two styles. Not necessarily the same color by color

Do you think you could also change the namespace part?

mcanepa avatar Apr 09 '21 12:04 mcanepa

@mcanepa yes how about this image

Binaryify avatar Apr 10 '21 02:04 Binaryify

much much better! thank you

mcanepa avatar Apr 10 '21 11:04 mcanepa

already release~

Binaryify avatar Apr 10 '21 11:04 Binaryify

Php end tag is not styled properly. Is this only on my machine? 🤔 If yes, is there is a json setting to force the change of the end tag color? Thanks in advance, and sorry if my english is bad.

2021-04-11_23-26-59

andrerahardjo97 avatar Apr 11 '21 16:04 andrerahardjo97

@andrerahardjo97 Same issue here G

JordanPak avatar Apr 11 '21 21:04 JordanPak

Same issue as @andrerahardjo97. I just did a quick change to "fix it" temporally for now, changing to previous color:

"editor.tokenColorCustomizations": {
    "[One Dark Pro]": {
        "textMateRules": [{
            "scope": ["punctuation.section.embedded.begin.php"],
            "settings": {
                "foreground": "#d55fde"
            }
        }]
    }
},

machadomatt avatar Apr 11 '21 22:04 machadomatt

Ah @machadomatt I think that's the "vivid" foreground color. #c678dd should work for the default/non-vivid if that's what you use @andrerahardjo97.

JordanPak avatar Apr 12 '21 00:04 JordanPak

Also idk if this was intended so please ignore if so, but the namespace highlighting when instantiating an object looks different now too:

image

It's still all yellow when declaring the namespace and with use:

image

JordanPak avatar Apr 12 '21 00:04 JordanPak

@JordanPak the namespace change was in fact intended, and both the "declaration" and the "use" are now just like Atom's

mcanepa avatar Apr 12 '21 00:04 mcanepa

@JordanPak that is atom look like image if you don't like it, you can add this in your setting.json

"editor.tokenColorCustomizations": {
    "[One Dark Pro]": {
      "textMateRules": [
        {
          "name": "support.other.namespace.php",
          "scope": [
            "support.other.namespace.php"
          ],
          "settings": {
            "foreground": "#E5C07B"
          }
        }
      ]
    }
  },

Binaryify avatar Apr 12 '21 02:04 Binaryify

Ah ok @mcanepa @Binaryify; thanks for clarifying. I like it.

JordanPak avatar Apr 12 '21 02:04 JordanPak

The <?php and ?> being different colours has really been throwing me off. Is there any way I can change this back to how it was previously?

andrewhawkes avatar Apr 12 '21 20:04 andrewhawkes

@andrewhawkes v3.10.13 should already fixed the different color error if you want change the color to before you can add this in your setting.json

  "editor.tokenColorCustomizations": {
    "[One Dark Pro]": {
      "textMateRules": [
        {
          "name": "punctuation.section.embedded.begin.php",
          "scope": [
            "punctuation.section.embedded.begin.php",
            "punctuation.section.embedded.end.php"
          ],
          "settings": {
            "foreground": "#c678dd"  // or #e06c75
          }
        }
      ]
    }
  },

Binaryify avatar Apr 13 '21 01:04 Binaryify

Hey @Binaryify thanks for the quick end tag patch and maintaining this awesome theme. Much appreciated!

JordanPak avatar Apr 13 '21 02:04 JordanPak

@JordanPak It was careless of me

Binaryify avatar Apr 13 '21 02:04 Binaryify

@Binaryify thank you that's great!

andrewhawkes avatar Apr 13 '21 09:04 andrewhawkes