feat(ui): Add toggle to disable search bar background in app drawer (#5934)

* feat(ui): Add toggle to disable search bar background in app drawer

* Fix double opacity on the Search Bar's background

- Before, the Search Bar added another -possibly transparent- layer on top of the already existing app drawer background.
- This adds a toggle to disable the double-opacity
- It is made so it is non regressive

Fixes #4158

* style(strings): Fixed inconsistency
This commit is contained in:
Chaikew authored and GitHub committed 2025-10-09 15:09:47 +08:00
1 parent 5f9a6745f9
commit 5635846e0d
5 files changed
+21 -1

No files matched your search

@@ -831,7 +831,15 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
}
protected int getHeaderColor(float blendRatio) {
var opacity = pref.getDrawerOpacity().get();
var showHeaderBackground = PreferenceExtensionsKt.firstBlocking(
pref2.getAppDrawerSearchBarBackground());
var opacity = 0.0f;
if (showHeaderBackground) {
opacity = pref.getDrawerOpacity().get();
}
var colorOptions = PreferenceExtensionsKt.firstBlocking(pref2.getAppDrawerBackgroundColor());
var color = colorOptions.getColorPreferenceEntry().getLightColor().invoke(mContext);
if (color != 0) {