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

Add all material color palette defined colors #9368

Merged
merged 1 commit into from
Nov 7, 2022

Conversation

robloo
Copy link
Contributor

@robloo robloo commented Nov 6, 2022

What does the pull request do?

The MaterialColorPalette previously only had the defined MaterialColor enum values that were used in the rectangular palette. The other colors were skipped as they would make the palette non-rectangular and unable to be displayed. However, now that the MaterialColor enum values are separate from the actual displayed palette, all colors can be included for those apps that need them.

What is the current behavior?

The MaterialColor enum only has the colors used in the rectangular palette.

What is the updated/expected behavior with this PR?

All material colors are defined.

How was the solution implemented (if it's not obvious)?

See code

Checklist

Breaking changes

None

Obsoletions / Deprecations

None

Fixed issues

N/A

@avaloniaui-team
Copy link
Contributor

You can test this PR using the following package version. 11.0.999-cibuild0025781-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 merged commit a344fec into AvaloniaUI:master Nov 7, 2022
@robloo robloo deleted the more-material-palette-colors branch November 7, 2022 20:15
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.

3 participants