mrlacey / CSInlineColorViz

See samples of the colors you use within your C# code.
https://marketplace.visualstudio.com/items?itemName=MattLaceyLtd.CSInlineColorViz
MIT License
21 stars 2 forks source link

Add support for another Color From overloads #9

Closed Diesel1017 closed 1 year ago

Diesel1017 commented 1 year ago

First thanks for the great extension, it helps a lot in my work!

I found some overloads that are (i think) not handled properly. Sample (attached the image):

//Works
Color color = Color.FromArgb(40, 255, 255, 155);

//Not works
Color color1 = Color.FromKnownColor(KnownColor.ControlDark); //It would be great if you could support this format
Color color2 = Color.FromName("Red"); //This is not so necessary, but it may be worth thinking about

//Not working properly
Color color3 = Color.FromArgb(10, Color.Red);
Color color4 = Color.FromArgb(40, Color.Red);

ColorFromOverloads

Could these overrides be included at some point?

mrlacey commented 1 year ago

Nice suggestions

mrlacey commented 1 year ago

Support coming soon

teaser: image

mrlacey commented 1 year ago

And with better support for FromArgb too

image

mrlacey commented 1 year ago

And all the above works without full namespace qualification too.

image

mrlacey commented 1 year ago

v1.11 is now available in the marketplace.

@Diesel1017 everything in your example should now be covered ;)

Diesel1017 commented 1 year ago

Thank you, I will test it.