Add option to change list item leading icon's background color #5319
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.
Task/Issue URL: https://app.asana.com/0/1202857801505092/1208848663479871
Description
Introduces an option to set a color for the list item leading icon's background. All leading icon backgrounds by default use a default grey-ish colors (depending on light/dark mode) with no option to change them. A new design for the Privacy Pro subscription activation screen requires the background for one of the list items to be specifically yellow.
I opted to provide this functionality by tinting the existing background drawable. This ensures that tinted background will still use the same shape as all the other list items, which cuts any additional maintenance if the background shapes/sizes get updated.
Steps to test this PR
You can try this out by applying below diff and navigating to Settings -> Sync & Backup:
UI changes
No changes to existing views.