Draw smaller icons over variable backgrounds. #144
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.
This adds a new preference (and alters the UI for an existing one) to allow you to choose how much to scale down certain icons:
The default is 90%, which is the middle size in this gif. The other two sizes shown are 80% and 100%; 100% shows the issue where the background color is not visible, hiding the link information.
The Desired products, Summary ingredients, and Extra products icons all scale too.
Potential additions and/or reversions
The
SelectMultiObjectPanel
icons used to be fixed at 80%, but I chose to make them follow this setting too. TheSelectSingleObjectPanel
, icons were also fixed at 80%, but I just bumped them up to 100%, since they never have an interesting background. I can restore one or bothSelectObjectPanel
behaviors, or makeSelectSingleObjectPanel
follow this setting for consistency.I can also extend the scaling to the recipe, entity, module, and/or beacon icons. I actually originally had the entity icon scale, but I saw how small the small assembler is (the crafter for Electrical engineering research 2) and decided I didn't want to make it even smaller.