Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

color correction - PHP #533

Closed
mcanepa opened this issue Apr 8, 2021 · 18 comments
Closed

color correction - PHP #533

mcanepa opened this issue Apr 8, 2021 · 18 comments
Labels

Comments

@mcanepa
Copy link

mcanepa commented Apr 8, 2021

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 mcanepa added the bug label Apr 8, 2021
@Binaryify
Copy link
Owner

Binaryify commented Apr 9, 2021

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

@mcanepa
Copy link
Author

mcanepa commented Apr 9, 2021

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?

@Binaryify
Copy link
Owner

@mcanepa yes
how about this
image

@mcanepa
Copy link
Author

mcanepa commented Apr 10, 2021

much much better! thank you

@Binaryify
Copy link
Owner

already release~

@andrerahardjo97
Copy link

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

@JordanPak
Copy link

@andrerahardjo97 Same issue here G

@machadomatt
Copy link

machadomatt commented Apr 11, 2021

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"
            }
        }]
    }
},

@JordanPak
Copy link

JordanPak commented Apr 12, 2021

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
Copy link

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

@mcanepa
Copy link
Author

mcanepa commented Apr 12, 2021

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

@Binaryify
Copy link
Owner

@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"
          }
        }
      ]
    }
  },

@JordanPak
Copy link

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

@andrewhawkes
Copy link

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?

Binaryify added a commit that referenced this issue Apr 13, 2021
@Binaryify
Copy link
Owner

Binaryify commented Apr 13, 2021

@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
          }
        }
      ]
    }
  },

@JordanPak
Copy link

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

@Binaryify
Copy link
Owner

@JordanPak It was careless of me

@andrewhawkes
Copy link

@Binaryify thank you that's great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants