-
Notifications
You must be signed in to change notification settings - Fork 426
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-551: Implement Dark Mode (Experimental) , use CardView instead of custom Card and follow Material guidelines for applying themes. #618
Conversation
509d29c
to
c3a2edd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deepak140596 Seems that this PR is not just adding dark mode to the app. Rename the title accordingly.
@@ -12,55 +12,57 @@ | |||
~ Copyright (C) OpenMRS, LLC. All Rights Reserved. | |||
--> | |||
|
|||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |||
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deepak140596 What is the change here? Any screenshot of the improved list view?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @f4ww4z . I am posting the UI. All the rows are now using CardViews with ripple effect for onClick.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One issue still remains, we need to migrate the PNG/JPG icons to vectors. I will create a new issue for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One issue still remains, we need to migrate the PNG/JPG icons to vectors. I will create a new issue for that.
Noted, ping me there.
@@ -13,55 +12,61 @@ | |||
~ Copyright (C) OpenMRS, LLC. All Rights Reserved. | |||
--> | |||
|
|||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |||
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Show us a screenshot of this improved list view.
Codecov Report
@@ Coverage Diff @@
## master #618 +/- ##
=========================================
- Coverage 14.3% 14.3% -0.01%
=========================================
Files 195 196 +1
Lines 9093 9104 +11
Branches 790 785 -5
=========================================
+ Hits 1301 1302 +1
- Misses 7713 7723 +10
Partials 79 79
Continue to review full report at Codecov.
|
@deepak140596 You'll need to implement dark mode in 'Add Patients' screen of 'Find Patients' section. See the screenshot: Also, try full white (#FFFFFF) for all text color when in dark mode, I think it will look better. |
@f4ww4z , I haven't used any hardcoded text color. Android is deciding the text color. We have two options for setting text colors: i) not using any attributes for text color ii) using text color as For body we should just leave it as it is. In the same example we can see there are 2 shades of white. One exception though, I have used a neutral green color for "Unable to login" option to highlight. Should I replace the color to White? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deepak140596 Looks good now!
Where does the 'unable to login' view show up?
Description of what I changed
Issue I worked on
JIRA Issue: https://issues.openmrs.org/browse/AC-551
Checklist: I completed these to help reviewers :)
(the number above, next to the 'Commits' tab is 1).
existing code that was well tested you do not have to add tests)