Skip to content

feat(android): add liquid glass chrome - #322

Merged
tiensonqin merged 7 commits into
mainfrom
devin/android-liquid-glass
Dec 4, 2026
Merged

tiensonqin merged 7 commits into
mainfrom
devin/android-liquid-glass

Conversation

@tiensonqin

@tiensonqin tiensonqin commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Render Android's floating top buttons, bottom tab strip, and search/capture actions with Haze 2.1 hazeGlass instead of a hand-painted translucent gradient.
  • Capture navigation content as a shared Haze backdrop source and scope the shared liquid-glass tweak to android/kotlin + ios/swiftui; existing iOS-only glass consumers keep their previous behavior.
  • Keep the shared bottom-tab-selected token's own alpha so the selected Home tab remains a light glass pill rather than a solid gray-blue fill.
  • Add an iOS-26-style approximation for bottom tab dragging: the selection indicator follows horizontal drags with small elastic overshoot, switches to a Haze glass lens while dragged, and springs to the committed tab on release.
  • Update the iOS tweak fingerprint for the expanded shared contract.

Validation

  • ./gradlew -PlogseqAndroidAbi=x86_64 :app:assembleDebug
  • ./gradlew -PlogseqAndroidAbi=x86_64 :app:testDebugUnitTest
  • dune build @shared/native/runtest — 1478 tests passed
  • Android 36 x86_64 emulator recordings below; content visibly blurs as it scrolls beneath the bottom glass, and the bottom selection lens follows horizontal tab drags. This Linux VM cannot provide a physical release-device frame benchmark.

Android Haze liquid glass demo

Android bottom tab liquid glass drag

Link to Devin session: https://app.devin.ai/sessions/e09872043ed64d98a10fc5e531db0298
Open in Devin Desktop: https://app.devin.ai/desktop/session/e09872043ed64d98a10fc5e531db0298?variant=devin
Requested by: @tiensonqin


🟢 Devin Review found nothing to fix · View findings · Follow Devin's work

Devin Review

@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

Use Haze's source-backed Glass renderer for the floating Android chrome instead of a flat gradient approximation. Capture the navigation content once for the small glass surfaces and keep the shared selected-tab token transparency intact.
Keep the background color inside the zero-z Haze source so nested header controls have a real fallback backdrop instead of capturing a transparent box.
Android 12L and below use Haze's non-shader Glass renderer, which cannot synthesize Regular's base fill. Supply a theme surface tint only on that path.

@devin-ai-integration devin-ai-integration Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@tiensonqin
tiensonqin merged commit d4d6645 into main Dec 4, 2026
9 of 10 checks passed
@tiensonqin
tiensonqin deleted the devin/android-liquid-glass branch December 4, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant