py.composite_icon improvements #134
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi there, i am currently trying to pitch in into the efforts to make recipe signals/icons easier to differentiate (as mentioned in pyanodon/pybugreports#1193).
I picked the atomizer recipes since they seemed a good starting point (all centralized in a file, not too many recipes) but ran into problems with py.composite_icon crashing when trying to use pyalienlife's plants. I fixed the problem and made the function a bit more robust in the process, faster too in a separate commit, both of which are in this pull request.
I hope it's okay to open pull requests like that, i'm not sure if you want to see a topic in pybugreports first.
Also: I have a couple of ideas on how to make a possibly somewhat easier to use (counting nil arguments is not fun) and perhaps more powerful composite icon generator, would you be interested in something like that? I really don't want to step on any toes nor spend my time with something that nobody is interested in in the end ;b