fix: use haze for secondary button bg blur#890
Merged
jvsena42 merged 3 commits intofix/polish-buttonsfrom Apr 6, 2026
Merged
Conversation
a45793c to
95c169e
Compare
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
jvsena42
reviewed
Apr 6, 2026
Collaborator
Author
|
@claude Please make a table listing all screens using Secondary Button, and on the 2nd column with a checkbox ✅ or cross ❌ if it it uses hazeState (ie. should blur) or not. |
This comment has been minimized.
This comment has been minimized.
Collaborator
Author
|
@jvsena42 can we merge it back to target PR and you can do your investigation there if you're still keen to pursue it?
Either do your investigation as you planned, or if you remember where it might've exploded, delegate to me as author of these changes, I'll bring the receipts if it works or not, after testing manually. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Stacked on:
This PR replaces the custom
glassBlurmodifier onSecondaryButtonwith the Haze library's frosted glass blur effect. The oldglassBlurusedBlurMaskFilterwhich only blurred the drawn tint shape itself — it never actually blurred the background content behind the button. Now the button uses Haze'shazeEffectwith a customHazeStyleto produce a real frosted glass blur matching the Figma design.Key changes:
hazeStateparameter toSecondaryButtonfor opt-in background blurOutlinedButtonin a clippedBoxso the blur renders before Material's SurfacehazeSourceon the background layer of Spending and Savings wallet screensglassBlurmodifier,GlassBlurElement, andGlassBlurNodesecondaryBlurRadiusfromButtonSizePreview
QA Notes