Skip to content

Dark Mode: Cleanup Stragglers and minor views#2262

Merged
anitaa1990 merged 12 commits intodevelopfrom
darkmode/misc-view-fixes
Apr 17, 2020
Merged

Dark Mode: Cleanup Stragglers and minor views#2262
anitaa1990 merged 12 commits intodevelopfrom
darkmode/misc-view-fixes

Conversation

@AmandaRiu
Copy link
Copy Markdown
Contributor

Another round of cleanup! This time doing a search and replace for <TextView/> and <AppCompatButton/> to update with the material versions, which led to minor changes in classes already converted, as well as updating some views that hadn't yet been converted:

Refund by item view

This view is not actively being used so the screenshots are just from the layout preview. This was needed to ensure the deprecated styles were removed. When we switch back to using this view we can tweak it if needed.

Before After
refund-light-before refund-light-after
refund-dark-before refund-dark-after

Dashboard Notice Card

Another view not actively in use, but I'm sure we're keeping it because we will use it again in the future. These screenshots are also from the layout preview. Since all the styles are standard we should be fine with these changes and can tweak if needed when we next use it.

Before After
update-light-before update-light-after
update-dark-before update-dark-after

Custom Progres Dialog

This view was already converted, but back when I made these changes I was still learning and have since figured out that the MaterialCardView is not necessary for dialogs - the OS will take care of the surface and elevations. So I removed that extra layer of hierarchy for performance reasons.

Before After
progress-light-before progress-light-after
progress-dark-before progress-dark-after

Amanda Riu added 11 commits April 16, 2020 16:30
This just fixes something I did early on but have since learned is not
necessary. Dialogs don't need to be contained in a card, the theme will
take care of the surface and elevation for us - so the extra layer
in the view hierarchy is just dead weight and a performance hit.
This view is not currently being used, but it's helpful to have it
finished.
This isn't currently in use, but since I'm removing old assets this needed to be converted as well.
@AmandaRiu AmandaRiu added the category: design Layout and style elements in the UI or user interface, including color and animations. label Apr 17, 2020
@peril-woocommerce
Copy link
Copy Markdown

peril-woocommerce bot commented Apr 17, 2020

Warnings
⚠️ PR is not assigned to a milestone.
⚠️ PR has more than 500 lines of code changing. Consider splitting into smaller PRs if possible.

Generated by 🚫 dangerJS

@peril-woocommerce
Copy link
Copy Markdown

peril-woocommerce bot commented Apr 17, 2020

You can test the changes on this Pull Request by downloading the APK here.

@anitaa1990 anitaa1990 self-assigned this Apr 17, 2020
Copy link
Copy Markdown
Contributor

@anitaa1990 anitaa1990 left a comment

Choose a reason for hiding this comment

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

Nice work :shipit:

@anitaa1990 anitaa1990 merged commit 4a716bb into develop Apr 17, 2020
@anitaa1990 anitaa1990 deleted the darkmode/misc-view-fixes branch April 17, 2020 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: design Layout and style elements in the UI or user interface, including color and animations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants