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 brushes??? #6

Open mrlacey opened 1 year ago

mrlacey commented 1 year ago

As asked/suggested on the marketplace Q&A

Could this also support brushes?

More requirements and thought on possible solutions are needed.

What platform? What types of brush? Is it necessary/important/practical to support anything other than a solid color brush? - i.e. Is support for radial and gradient brushes necessary?

What about things that can't be represented in WPF?

mrlacey commented 10 months ago

SolidColorBrush seems like a good first step

mrlacey commented 9 months ago

I think the real value here is if

Considering this code:

var btnColor = Colors.Blue;

var btn! = new Button{ BackgroundColor = btnColor, };

The extensions currently only adds a color adornment to Colors.Blue; in the first line If it also added an adorner to the use of btnColor in the second line then also adding adorners to SolidColor brushes could be really useful.