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

AC-627: Change ImageView color depending upon theme #620

Merged
merged 1 commit into from
Jul 30, 2019

Conversation

deepak140596
Copy link
Contributor

@deepak140596 deepak140596 commented Jul 21, 2019

Description of what I changed

Changed Tint of ImageViews in the Dashboard buttons depending on the theme set.

Issue I worked on

JIRA Issue: https://issues.openmrs.org/browse/AC-627

Checklist: I completed these to help reviewers :)

  • My pull request only contains ONE single commit
    (the number above, next to the 'Commits' tab is 1).
  • I have added tests to cover my changes. (If you refactored
    existing code that was well tested you do not have to add tests)
  • All new and existing tests passed.
  • My pull request is based on the latest changes of the master branch.

@deepak140596
Copy link
Contributor Author

@codecov-io
Copy link

codecov-io commented Jul 21, 2019

Codecov Report

Merging #620 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #620      +/-   ##
=========================================
- Coverage   14.32%   14.3%   -0.02%     
=========================================
  Files         202     202              
  Lines        9200    9212      +12     
  Branches      790     791       +1     
=========================================
  Hits         1318    1318              
- Misses       7801    7813      +12     
  Partials       81      81
Impacted Files Coverage Δ
...mobile/activities/dashboard/DashboardFragment.java 0% <0%> (ø) ⬆️
.../java/org/openmrs/mobile/utilities/ImageUtils.java 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 222d206...6d76dc2. Read the comment docs.

Copy link
Collaborator

@f4ww4z f4ww4z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @deepak140596 , just address my trivial comments.

@@ -333,4 +340,14 @@ public void onClick(View v) {
break;
}
}

private void changeColorOfImageView() {
int colorResId = R.color.green;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a good enough variable name. Also make this a final class variable instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@f4ww4z , changed the name to greenColorResId .

@deepak140596
Copy link
Contributor Author

@f4ww4z , Please review this PR

@f4ww4z f4ww4z merged commit 5fe4a36 into openmrs:master Jul 30, 2019
@deepak140596 deepak140596 deleted the AC-627 branch August 2, 2019 15:01
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.

3 participants