From 5688010306585f2aa05d259510ddd4cffeb3cfa8 Mon Sep 17 00:00:00 2001 From: Jon Miranda Date: Fri, 11 Jun 2021 11:21:51 -0700 Subject: [PATCH] Folder polish - update color extraction, fix contrast issues. - Also fixes open/close animation when items were not getting clipped due to folder not being measured yet. Bug: 190210234 Bug: 190164147 Test: manual Change-Id: I230c33d7e4e1871d8d702737c56c79ce46504b8f Merged-In: I230c33d7e4e1871d8d702737c56c79ce46504b8f --- res/values-v31/colors.xml | 7 +- res/values/colors.xml | 3 + res/values/styles.xml | 32 +++--- src/com/android/launcher3/folder/Folder.java | 108 ------------------ .../folder/FolderAnimationManager.java | 8 +- 5 files changed, 27 insertions(+), 131 deletions(-) diff --git a/res/values-v31/colors.xml b/res/values-v31/colors.xml index 1434430223..38a08948a0 100644 --- a/res/values-v31/colors.xml +++ b/res/values-v31/colors.xml @@ -16,7 +16,7 @@ ** limitations under the License. */ --> - + @android:color/system_accent2_50 @android:color/system_neutral2_100 @android:color/system_neutral2_300 @@ -36,7 +36,8 @@ @android:color/system_neutral2_400 @android:color/system_neutral1_900 - + @android:color/system_neutral1_50 + @android:color/system_neutral2_800 + @android:color/system_accent2_50 - diff --git a/res/values/colors.xml b/res/values/colors.xml index 7aab4fa88c..dac12ed40c 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -59,6 +59,9 @@ #FFF #FF000000 + #FFFFFF + #FF3C4043 + ?attr/colorPrimary #FFFFFFFF diff --git a/res/values/styles.xml b/res/values/styles.xml index 571377cd3f..eceec8d989 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -48,9 +48,9 @@ @drawable/workspace_bg @style/WidgetContainerTheme @color/folder_dot_color - ?android:attr/colorBackgroundFloating + @color/folder_background_light ?android:attr/colorPrimary - ?android:attr/textColorPrimary + @color/workspace_text_color_dark true @color/folder_hint_text_color_dark #CCFFFFFF @@ -71,10 +71,10 @@ @@ -87,9 +87,9 @@ true @null @color/folder_dot_color - ?android:attr/colorBackgroundFloating + @color/folder_background_light #FF80868B - ?attr/workspaceTextColor + @color/workspace_text_color_dark true @color/folder_hint_text_color_dark @@ -109,9 +109,9 @@ @color/popup_color_tertiary_dark @style/WidgetContainerTheme.Dark @color/folder_dot_color - ?android:attr/colorBackgroundFloating + @color/folder_background_dark ?android:attr/colorPrimary - ?android:attr/textColorPrimary + @color/workspace_text_color_light false @color/folder_hint_text_color_light true @@ -123,8 +123,8 @@