-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Introduce helpers for theme colors and document how to support light and dark themes #2178
Conversation
Looks good to me! Thanks, @shobhitagarwal1612. |
c156283
to
c4de55e
Compare
@shobhitagarwal1612 something has happened to the history. It looks like you may have tried to rebase on master to fix conflicts but maybe ended up with an older version? Only the relevant commits should show up in the diff. |
c4de55e
to
1c2f0a1
Compare
I rebased onto my origin master branch instead of upstream master branch which wasn't updated in quite some time |
Ahh, much better! Hope it wasn't too painful. Now we're back in business. 😊 |
Just had to rebase and then drop some commits to fix it |
1c2f0a1
to
5a38f71
Compare
Tested with success I did not notice regression. @opendatakit-bot unlabel "needs testing" |
…ivity vector icons
5a38f71
to
8771b8f
Compare
@mmarciniak90 I have updated the branch with the fix so the remaining task can be tested now |
The buttons are looking good so I'll merge and there will be more verification with a second beta and pre-release testing. 👍 |
Closes #2165
What has been done to verify that this works as intended?
Verified manually on Moto G5 plus Android 7.0
Why is this the best possible solution? Were any other approaches considered?
This adds helper functions for getting theme colors instead of fetching using the attribute id and also create a new custom attribute
iconColor
to be used in place ofcoloControlNormal
for better clarityAre there any risks to merging this code? If so, what are they?
Yes, refactoring is always risky. The color of icons might behave differently if the new attribute is not applied to all places
Do we need any specific form for testing your changes? If so, please attach one.
No
Does this change require updates to documentation? If so, please file an issue at Here and include the link below.
Before submitting this PR, please make sure you have:
./gradlew pmd checkstyle lint findbugs
and confirmed all checks still pass.