Support Material 3 in PhotoPicker
- Support dyanmic color
- Use Material 3 theme
- Update the selected chip text color on light theme for pre-s OS
- Update the scrim color of photo item to #61202124
Test: manual. screenshots and videos on the bug
Bug: 194760624
Bug: 207057297
Change-Id: I59d327660effb3b0ead56b155e6b7a6e66fbc4f3
diff --git a/res/values/colors.xml b/res/values/colors.xml
index 80772b3..e934274 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -19,34 +19,25 @@
<color name="clear_cache_icon_color">#5F6368</color>
<!-- PhotoPicker -->
+ <color name="picker_background_color">@android:color/white</color>
<color name="picker_default_white">@android:color/white</color>
<color name="picker_drag_bar_color">#DADCE0</color>
- <!-- PhotoPicker photo grid -->
- <color name="picker_primary_color">#1A73E8</color>
- <color name="picker_background_color">@android:color/white</color>
- <color name="picker_highlight_color">#E8F0FE</color>
- <color name="picker_date_header_text_color">#3C4043</color>
- <color name="picker_toolbar_icon_color">#3C4043</color>
- <color name="picker_toolbar_chip_text_color">#5F6368</color>
- <color name="picker_toolbar_title_color">#3C4043</color>
+ <!-- PhotoPicker check button -->
+ <color name="picker_unselected_check_color">@android:color/white</color>
<!-- PhotoPicker gradient colors -->
- <color name="picker_item_gradient_color">#42000000</color>
+ <color name="picker_item_gradient_color">#61202124</color> <!-- 38% opacity -->
<color name="preview_gradient_color_light">@android:color/transparent</color>
<color name="preview_gradient_color_dark">#80202124</color>
<color name="preview_scrim_solid_color">#E6000000</color> <!-- 90% opacity black -->
<!-- PhotoPicker Preview -->
- <color name="preview_default_blue">#8AB4F8</color>
+ <color name="preview_highlight_color">#8AB4F8</color>
<color name="preview_default_grey">#202124</color>
- <color name="preview_default_black">@android:color/black</color>
+ <color name="preview_background_color">@android:color/black</color>
<!-- PhotoPicker Profile Button -->
- <color name="picker_profile_button_content_color">#0B57D0</color>
- <color name="picker_profile_button_background_color">#E8F0FE</color>
<color name="picker_profile_disabled_button_content_color">#1F1F1F</color>
<color name="picker_profile_disabled_button_background_color">#DADADA</color>
- <color name="picker_profile_dialog_icon_and_button_color">#1A73E8</color>
- <color name="picker_profile_dialog_text_color">#3C4043</color>
</resources>