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 support for transparent Color #59

Merged
merged 2 commits into from
Jun 7, 2023
Merged

Add support for transparent Color #59

merged 2 commits into from
Jun 7, 2023

Conversation

CollinHeist
Copy link
Contributor

Implementation of #58


I opted not to put it in the existing COLORS_BY_NAME dictionary as these are all RGB values, and this requires RGBA values. This would then require adding a fourth None value to all the tuples, adjusting all that logic, etc.; and that seems overkill for this single color.

@yezz123
Copy link
Collaborator

yezz123 commented Jun 7, 2023

@CollinHeist i will merge it can you add just a test case for it 🙏🏻

@CollinHeist
Copy link
Contributor Author

@yezz123 Sure, I've taken stab at that. I'm not familiar with pytest so let me know if you have an alternate suggestion.

Copy link
Collaborator

@yezz123 yezz123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ❤️

@yezz123 yezz123 merged commit bad5e6c into pydantic:main Jun 7, 2023
@yezz123 yezz123 mentioned this pull request Jun 7, 2023
@CollinHeist CollinHeist deleted the transparent-color branch June 7, 2023 06:50
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.

2 participants