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

Avalonia.Media.Color Extensions #202

Merged

Conversation

ConradRoesch
Copy link
Contributor

Brush Extensions: Add support for Avalonia.Media.Colors parameter
e.g., add support for:
.background(Colors.Azure)

alongside the existing methods:
.background("#fff0ffff")
.background(SolidColorBrush(Colors.Azure))

@ConradRoesch
Copy link
Contributor Author

Happy New Year! Thank you @edgarfgp for all of the hard work that you've put into this project throughout the year.
These proposed Extensions are of course not strictly necessary, but considering how often solid colors are used in practice, my thoughts are that being able to use the named colors directly is a worthwhile convenience.

@edgarfgp
Copy link
Member

edgarfgp commented Jan 3, 2024

Happy New Year! Thank you @edgarfgp for all of the hard work that you've put into this project throughout the year. These proposed Extensions are of course not strictly necessary, but considering how often solid colors are used in practice, my thoughts are that being able to use the named colors directly is a worthwhile convenience.

Happy New Year!. Yeah I think this will handy convenient modifiers. We just need to fix Tim's review suggestions .

Thanks for taking the time 👍

@edgarfgp edgarfgp merged commit eff5523 into fabulous-dev:main Jan 7, 2024
1 check passed
@edgarfgp
Copy link
Member

edgarfgp commented Jan 8, 2024

@ConradRoesch This has been released in version 2.1.0

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

Successfully merging this pull request may close these issues.

None yet

3 participants