From 0652bd13b6b408364f602209a29c20d91590aa13 Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Mon, 22 Mar 2021 20:25:24 -0700 Subject: [PATCH] Update share sheet with NEXT style - made backgrounds lighter (colorBackground) - removed shadows from buttons - updated tint colors on buttons - updated button background colors Bug: 181994925 Test: visual Change-Id: I74938594e4192553f616897218affefaa0575651 --- core/res/res/drawable/bottomsheet_background.xml | 2 +- core/res/res/drawable/chooser_action_button_bg.xml | 8 +++----- core/res/res/layout/chooser_action_button.xml | 3 ++- core/res/res/layout/chooser_grid.xml | 4 ++-- core/res/res/layout/chooser_grid_preview_file.xml | 2 +- core/res/res/layout/chooser_grid_preview_image.xml | 4 ++-- core/res/res/layout/chooser_grid_preview_text.xml | 2 +- core/res/res/layout/chooser_list_per_profile.xml | 2 +- core/res/res/layout/resolver_empty_states.xml | 2 +- core/res/res/layout/resolver_list.xml | 12 ++++++------ core/res/res/layout/resolver_list_per_profile.xml | 2 +- core/res/res/layout/resolver_list_with_default.xml | 10 +++++----- core/res/res/values-night/colors.xml | 1 - core/res/res/values/colors.xml | 1 - 14 files changed, 26 insertions(+), 29 deletions(-) diff --git a/core/res/res/drawable/bottomsheet_background.xml b/core/res/res/drawable/bottomsheet_background.xml index 3a8ad71187a08..00d53004c9dca 100644 --- a/core/res/res/drawable/bottomsheet_background.xml +++ b/core/res/res/drawable/bottomsheet_background.xml @@ -18,5 +18,5 @@ - + diff --git a/core/res/res/drawable/chooser_action_button_bg.xml b/core/res/res/drawable/chooser_action_button_bg.xml index 0dd9e9c7cd98b..18bbd93d1535a 100644 --- a/core/res/res/drawable/chooser_action_button_bg.xml +++ b/core/res/res/drawable/chooser_action_button_bg.xml @@ -15,7 +15,7 @@ ~ limitations under the License --> + android:color="?android:attr/colorControlHighlight"> - - - + + diff --git a/core/res/res/layout/chooser_action_button.xml b/core/res/res/layout/chooser_action_button.xml index 6af7937960f0c..16ffaa4b90cab 100644 --- a/core/res/res/layout/chooser_action_button.xml +++ b/core/res/res/layout/chooser_action_button.xml @@ -25,6 +25,7 @@ android:singleLine="true" android:clickable="true" android:background="@drawable/chooser_action_button_bg" - android:drawableTint="@color/chooser_chip_icon" + android:drawableTint="?android:textColorPrimary" android:drawableTintMode="src_in" + style="?android:attr/borderlessButtonStyle" /> diff --git a/core/res/res/layout/chooser_grid.xml b/core/res/res/layout/chooser_grid.xml index c0de6936dd128..10683b189fc53 100644 --- a/core/res/res/layout/chooser_grid.xml +++ b/core/res/res/layout/chooser_grid.xml @@ -67,7 +67,7 @@ android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" - android:background="?attr/colorBackgroundFloating"> + android:background="?attr/colorBackground"> + android:background="?attr/colorBackground"> + android:background="?attr/colorBackground"> + android:background="?attr/colorBackground"> + android:background="?android:attr/colorBackground"> diff --git a/core/res/res/layout/resolver_empty_states.xml b/core/res/res/layout/resolver_empty_states.xml index bdcfeb21598a1..8594c33c3082a 100644 --- a/core/res/res/layout/resolver_empty_states.xml +++ b/core/res/res/layout/resolver_empty_states.xml @@ -84,7 +84,7 @@ + android:background="?attr/colorBackground"/> + android:background="?attr/colorBackground"> + android:background="?attr/colorBackground"/> + android:background="?attr/colorBackground"> diff --git a/core/res/res/values-night/colors.xml b/core/res/res/values-night/colors.xml index 4410e944db39d..baffa5a82cdb1 100644 --- a/core/res/res/values-night/colors.xml +++ b/core/res/res/values-night/colors.xml @@ -36,7 +36,6 @@ #FFFFFF #FFFFFF - #8AB4F8 #8AB4F8 diff --git a/core/res/res/values/colors.xml b/core/res/res/values/colors.xml index 91896febc5711..7dce386306182 100644 --- a/core/res/res/values/colors.xml +++ b/core/res/res/values/colors.xml @@ -237,7 +237,6 @@ #ffC4C6C6 #FF202124 #FF5F6368 - #FF1A73E8 #1A73E8