Skip to content

use colored backdrop for Input Screen alpha transitions on API 33+ #6421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

LukasPaczos
Copy link
Contributor

@LukasPaczos LukasPaczos commented Jul 18, 2025

Task/Issue URL: https://app.asana.com/1/137249556945/project/1208671518894266/task/1210820490944337?focus=true

Description

Uses the backdrop API for window transitions to supply a backdrop color which is drawn below and beyond bounds of the activity to prevent the activity window fading to black during alpha transitions.

I remove the translation transition from API < 31 because it didn't run on tested devices anyway.

Additionally, I cleaned up the transition files and moved them to duckchat module, which is more appropriate as they are targeted specifically at the Input Screen transition behavior.

Steps to test this PR

  • Verify the slide + fade transitions look right in light and dark mode on API >= 33
  • Verify the fade transition looks right in light and dark mode on API < 33 (unchaged behavior)

UI changes (for API 33+)

Before After
before after

Copy link
Contributor

@joshliebe joshliebe left a comment

Choose a reason for hiding this comment

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

Tested on API 27 & API 36 ✅
Animation is really smooth but I think 300ms is a little too slow now, 200ms might work better.

@LukasPaczos LukasPaczos force-pushed the fix/lukasz-p/transition-backgroun-color-persistance-2 branch from 532508d to 6bf1074 Compare July 22, 2025 08:11
@LukasPaczos LukasPaczos enabled auto-merge (squash) July 22, 2025 08:12
@LukasPaczos LukasPaczos merged commit fbc10e0 into develop Jul 22, 2025
6 checks passed
@LukasPaczos LukasPaczos deleted the fix/lukasz-p/transition-backgroun-color-persistance-2 branch July 22, 2025 08:25
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.

3 participants