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

Added a default fallback naming scheme for image resources with variants #989

Merged
merged 2 commits into from Dec 6, 2022

Conversation

freakboy3742
Copy link
Member

Android requires a square and circle variant for it's icons; however, there's no fully "default" icon for Android, as you have to specify a icons.round and icons.square definition to provide a filename.

This PR adds a default fallback; if a pyproject.toml doesn't specifically provide a variant-based definition, the variant will be added to the filename in a default pattern. If a variant-based icon definition is provided, it is assumed that all required variants will be specified.

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

@mhsmith mhsmith merged commit aab0107 into beeware:main Dec 6, 2022
@freakboy3742 freakboy3742 deleted the image-variant-fallback branch December 6, 2022 23:32
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

2 participants