From 5a2404b1537f19626a521e9259f4fae6146e87dd Mon Sep 17 00:00:00 2001 From: Pun Butrach Date: Sat, 18 Oct 2025 03:06:27 +0700 Subject: [PATCH] feat: Reimplement Allapps opacity configuration Signed-off-by: Pun Butrach --- GITHUB_CHANGELOG.md | 1 + .../launcher3/allapps/ActivityAllAppsContainerView.java | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/GITHUB_CHANGELOG.md b/GITHUB_CHANGELOG.md index 45a1760cdf..4b1553def4 100644 --- a/GITHUB_CHANGELOG.md +++ b/GITHUB_CHANGELOG.md @@ -32,6 +32,7 @@ Compatibility list: * [Lawnchair] Hotseat positioning with favorite icon label enabled placed the same even if label is disabled * [Lawnchair] Hotseat background now have a reasonably sized margin compared to D2 * [Lawnchair] Qsb sizing now correctly estimate the width based on width of the app/widget layout or DeviceProfile on device with inlined Qsb +* [Lawnchair] Reimplement Allapps opacity configuration ### Development 2 diff --git a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java index f8d21da22e..2663954df6 100644 --- a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java @@ -833,11 +833,9 @@ public class ActivityAllAppsContainerView } protected int getHeaderColor(float blendRatio) { + var opacity = mSearchContainer.getAlpha(); var showHeaderBackground = PreferenceExtensionsKt.firstBlocking( pref2.getAppDrawerSearchBarBackground()); - - var opacity = 0.0f; - if (showHeaderBackground) { opacity = pref.getDrawerOpacity().get(); } @@ -849,7 +847,7 @@ public class ActivityAllAppsContainerView } return ColorUtils.setAlphaComponent( ColorUtils.blendARGB(mScrimColor, mHeaderProtectionColor, blendRatio), - (int) (mSearchContainer.getAlpha() * 255)); + (int) (opacity * 255)); } /**