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
f4ww4z
left a comment
There was a problem hiding this comment.
@deepak140596 Seems that this PR is not just adding dark mode to the app. Rename the title accordingly.
| --> | ||
|
|
||
| <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.
@deepak140596 What is the change here? Any screenshot of the improved list view?
There was a problem hiding this comment.
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.
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.
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.
| --> | ||
|
|
||
| <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.
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? |
f4ww4z
left a comment
There was a problem hiding this comment.
@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)