Skip to content

feat(search): add wallpaper blur behind option for pixel search - #1342

Open
Balajitechlabs wants to merge 10 commits into
developfrom
feature/search-frosted-glass
Open

Balajitechlabs wants to merge 10 commits into
developfrom
feature/search-frosted-glass

Conversation

@Balajitechlabs

@Balajitechlabs Balajitechlabs commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Reworked this PR following review feedback to keep the native launcher feel intact.

Instead of overriding themes or handling back gestures manually in Compose (which broke the widget animations and predictive back), this keeps Theme.Essentials.WallpaperTranslucent and simply toggles native window blur (FLAG_BLUR_BEHIND) behind the wallpaper.

  • Leaves the native launcher widget expand/collapse animations and system Predictive Back completely untouched.
  • Adds a "Blur" toggle in Pixel Searchbar Settings (visible on Android 12+).
  • Updates window blur in onResume / onNewIntent so toggling it applies right away.
  • Adjusts the background scrim contrast automatically so search results stay easy to read whether blur is turned on, off, or disabled by battery saver.

Type of change

  • Bug fix
  • New feature
  • UI / visual update
  • Performance improvement
  • Refactoring / cleanup
  • Translations
  • Build / CI tooling

UI changes

  • Added a new Blur ("Blur the wallpaper background") toggle under Search Results in Pixel Searchbar Settings (Android 12+).

Checklist

Before submitting, please make sure:

  • The base branch is set to develop (not main).
  • The app builds cleanly locally with ./gradlew assembleDebug.
  • Unit tests pass with ./gradlew testDebugUnitTest.
  • You tested the changes on a device or emulator (including Shizuku or Root if applicable).
  • New preferences use SettingsRepository for keys and getter/setter methods.
  • New user-facing settings are registered in FeatureRegistry.kt for search indexing.
  • New UI follows the design system in ui/core/ (RoundedCardContainer, IconToggleItem, etc.).
  • Strings are added to res/values/strings.xml and drawables use rounded variants (R.drawable.rounded_*).

@sameerasw sameerasw left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change breaks predictive back gesture

@sameerasw
sameerasw marked this pull request as draft October 11, 2026 15:12
@sameerasw sameerasw added the enhancement New feature or request label Oct 11, 2026
@sameerasw sameerasw moved this from Backlog to In review in Essentials Progress Oct 11, 2026
@Balajitechlabs

Copy link
Copy Markdown
Collaborator Author

Thanks for catching this! Fixed in the latest commit 🥇 :}

@Balajitechlabs
Balajitechlabs marked this pull request as ready for review October 11, 2026 15:31

@sameerasw sameerasw left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No this is not the behavior we had before. This is just custom hand made animations animating while listening to back gesture. Not the initial animations we had in the launcher open and close animation or the search from the widget.

If we can not fix predictive back gesture and animation, this change is not worth it. Because it breaks the whole flow of the searchbar to act as an overlay rather than the search opening right from the widget and then closing back into it.

@sameerasw
sameerasw marked this pull request as draft October 11, 2026 16:01
@Balajitechlabs
Balajitechlabs marked this pull request as ready for review October 11, 2026 16:45
@sameerasw
sameerasw force-pushed the feature/search-frosted-glass branch 2 times, most recently from e3b095d to 10350bd Compare October 15, 2026 11:33
@sameerasw
sameerasw marked this pull request as draft October 15, 2026 11:45
@Balajitechlabs Balajitechlabs changed the title feat(search): add frosted glass active screen blur option for search … feat(search): add wallpaper blur behind option for pixel search Oct 18, 2026
@Balajitechlabs

Copy link
Copy Markdown
Collaborator Author

Hey @sameerasw, updated! Removed the custom theme and back handler so the native widget animations and predictive back work properly. Tested on device and works great now.

@Balajitechlabs
Balajitechlabs marked this pull request as ready for review October 18, 2026 05:15
@sameerasw
sameerasw force-pushed the feature/search-frosted-glass branch from f233357 to d003ee8 Compare October 18, 2026 05:25
@Balajitechlabs
Balajitechlabs marked this pull request as draft October 18, 2026 06:07
@Balajitechlabs
Balajitechlabs marked this pull request as ready for review October 18, 2026 06:49
@Balajitechlabs

Copy link
Copy Markdown
Collaborator Author

now shd work for you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

2 participants