commit | 960f97d24e45e507d162447764c518366234db1d | [log] [tgz] |
---|---|---|
author | Catherine Liang <cathliang@google.com> | Wed Mar 29 15:57:49 2023 +0000 |
committer | George Lin <giolin@google.com> | Thu Apr 06 21:16:08 2023 +0000 |
tree | 1b67cb55ce110a8a0c8b7fc6230a6cf1be04ab01 | |
parent | fe07d1ced289e09ca9487c77a6d9e00ab2aad33f [diff] |
Dynamic Color Tile Update Update wallpaper color tile preview mapping in revamped UI. Also adjusted to adapt to new requirement for color preview to be different between ligth and dark theme. Instead of providing color preview based on light or dark theme in the view model, which isn't aware of context changes, this CL refactors so that light and dark colors are both included in the view model and then binded based on the view's context. Colors in Original UI: https://screenshot.googleplex.com/paBb2pTDc3UrjS8.png Colors in Revamped UI Dark Theme: https://screenshot.googleplex.com/5RWjka3KkZZNHLE.png Colors in Revamped UI Light Theme: https://screenshot.googleplex.com/3ySrCMuuTzjEmPo.png Bug: 275625332 Test: Verified manually on both revamped and original UI, and verified that colors change when dark theme toggle is updated. Also made sure color picker interactor and view model tests still pass Change-Id: I4299aa5d4132646f1516599f9f7f77ce4d740a09