Update All Apps colors to use shared sysui resources.

This includes the new scrim color and panel treatment documented
here: https://docs.google.com/presentation/d/1BKFfB2LAIDoaA5aLs8did6IcUw_pktrSWI5xmypkl3s/edit?slide=id.g3484dcfffc6_1_203&resourcekey=0-HpXwztiEYGe0BYQzUeBBbQ#slide=id.g3484dcfffc6_1_203

Bug: 371343636
Test: Manual
Flag: com.android.launcher3.all_apps_blur
Change-Id: I810aaa84eda218ab33112c9a5c1561cdb088b310
This commit is contained in:
Andy Wickham committed 2025-04-17 19:14:18 +00:00
1 parent 3a245f5fc2
commit 51a0a3829a
6 files changed
+15 -10

No files matched your search

@@ -316,13 +316,9 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
};
if (Flags.allAppsBlur()) {
int overBlurBaseColor = getContext().getColor(Utilities.isDarkTheme(getContext())
? android.R.color.system_accent1_800
: android.R.color.system_accent1_100);
int layerAbove = ColorUtils.setAlphaComponent(overBlurBaseColor, (int) (0.4f * 255));
int layerBelow = ColorUtils.setAlphaComponent(Color.WHITE, (int) (0.1f * 255));
mBottomSheetBackgroundColorOverBlur = ColorUtils.compositeColors(layerAbove,
layerBelow);
int layerFg = getContext().getColor(R.color.blur_shade_panel_fg);
int layerBg = getContext().getColor(R.color.blur_shade_panel_bg);
mBottomSheetBackgroundColorOverBlur = ColorUtils.compositeColors(layerFg, layerBg);
mBottomSheetBackgroundColorBlurFallback = getContext().getColor(
Utilities.isDarkTheme(getContext()) ? android.R.color.system_accent1_800
: android.R.color.system_accent2_100);