enyancc / vscode-ext-color-highlight

Extension adds colored border around css/web colors in the editor
GNU General Public License v3.0
263 stars 85 forks source link

#ARGB or #RGBA #142

Open cc-nogueira opened 3 years ago

cc-nogueira commented 3 years ago

I wonder if there could be an extension option to define whether the alpha channel is represented at the start or the end of a hexa constant.

In Flutter colors are commonly represented as #ARGB witch is not currently supported by this extension.

ferretwithaberet commented 3 years ago

This is a great ideea, this could be a workspace scoped setting. So you can choose which one to use per workspace.

Feel free to contribute!

hardiklakhalani commented 3 years ago

@cc-nogueira is this your question? image

Well, it's showing the wrong color where Gutter is showing the right swatch. So is this a Bug?

DarkMikey commented 3 years ago

Would really appreciate this. VSCode does correctly display the colors. image

JavonneM commented 3 years ago

Yeah I see to be having the same issue. Using vscode 1.59.0 and developing flutter apps. Screenshot 2021-08-23 at 11 30 48

MrTartuf0 commented 3 months ago

I'm having the same issue, it displays the colors in the RGBA format instead of ARGB, that flutter uses, while vscode with the colored square displays the correct color

image