-
Notifications
You must be signed in to change notification settings - Fork 86
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
Wrong color displaying with 0x color #182
Comments
Hex codes with 4 digits are not valid color codes according to the CSS specs. https://www.w3.org/TR/css-color-3/#rgb-color You could argue the 4th digit stands for the opacity, so the 4 digits would be a shorthand for an RGBA color, which is fair. However, that behavior should match the one for RGB colors, where the single digit is repeated.
If |
@Ascor8522 I'm talking about a color value that is a Hexadecimal Integer Literal (0xRRGGBB), not String Value ("#RRGGBB"). 0xDEAD == 0x00DEAD && 0xDEAD == 0x0000DEAD Then you will get the result: |
Those are just numbers then. They aren't colors. Maybe the application you were writing was using those numbers as colors, but that's not something standard. It should also depend on the palette used. |
Hi!
Color with 4 letters (for example 0xDEAD) should be displayed like 0x00DEAD. Another example: 0xC0DE = 0x00C0DE.
Currently, the extension is displaying wrong colors. Please see the image below. The colors on the right are correct.
Thank you for the great extension!
The text was updated successfully, but these errors were encountered: