Skip to content

Add Liquid Glass as an optional blur material - #1904

Merged
rxhanson merged 5 commits into
rxhanson:mainfrom
kiteretsu903:fix/review-liquid-glass
Nov 29, 2026
Merged

rxhanson merged 5 commits into
rxhanson:mainfrom
kiteretsu903:fix/review-liquid-glass

Conversation

@kiteretsu903

@kiteretsu903 kiteretsu903 commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Adds Liquid Glass for Blur footprint under Snap Areas on macOS 26 and later. The material toggle appears only when Blur footprint is enabled. Changes are scoped to footprint rendering and settings, leaving existing footprint labels, preference keys, WindowManager, and move hooks unchanged.

Behavior

Scenario Behavior
Existing user with Blur footprint on Keeps Standard blur with no unexpected visual change
First explicit Blur footprint enable on macOS 26+ with no saved material Selects Liquid Glass as the initial material
Later Blur footprint toggles Preserves the saved material choice
Blur footprint disabled Hides the material control and uses the normal unblurred footprint settings
Earlier macOS versions Hides the material control and uses Standard blur when Blur footprint is enabled
Reduce Transparency enabled or toggled at runtime Hides blur controls and falls back to the unblurred footprint presentation
Configuration export and import Round-trips the integer-backed blurMaterial preference

Shared rendering

The material preference uses an integer-backed BlurMaterial enum (standard and liquidGlass) so additional materials fit cleanly. A shared BlurSurfaceView handles Standard blur (NSVisualEffectView) and native Liquid Glass (NSGlassEffectView on macOS 26+) for snap footprints and subsequent overlays, adapting to appearance and Reduce Transparency changes at runtime.

Verification

  • Unit tests: 816 tests, 2 skipped, zero failures.
  • Native E2E: Passed baseline footprint and Liquid Glass drag-preview checks.

Review order

Review the Glass changes against main. These PRs form an ordered dependency chain: #1904 → #1903 → #1907. Merge #1904 first; if squash-merging, replay #1903 on the resulting main before merging it.

Demo

07-liquid-glass.mp4

@rxhanson

Copy link
Copy Markdown
Owner

I decided to skip over the PRs that touch WindowManager until I update it.

I noticed a couple of things walking through this one:

  • This setting is only applicable when Blur footprint is enabled, right? In that case, we can hide it if Blur footprint is disabled.
  • Rather than storing this setting as a BoolDefault, it might be better to make an int enum for it to handle any additional textures that might be desired in the future.

@kiteretsu903

Copy link
Copy Markdown
Contributor Author

I decided to skip over the PRs that touch WindowManager until I update it.

I noticed a couple of things walking through this one:

  • This setting is only applicable when Blur footprint is enabled, right? In that case, we can hide it if Blur footprint is disabled.
  • Rather than storing this setting as a BoolDefault, it might be better to make an int enum for it to handle any additional textures that might be desired in the future.

No worries about the timing! I’ll wait for the WindowManager update.
For this PR itself, yes, the material option only applies when “Blur footprint” is enabled, so i'll update this PR to hide it when disabled + use an enum for the material choice once you have the Window Manager ready.

And also realizing another thing, looking ahead to my other PRs, the material choice is also intended for Layout Helper backgrounds and divider handles, so the current label could be clearer if we decide to go ahead with other PRs.
Would you prefer per-feature controls or one shared blur/material setting? I lean toward the shared approach for simplicity if that makes sense

@rxhanson

Copy link
Copy Markdown
Owner

Would you prefer per-feature controls or one shared blur/material setting? I lean toward the shared approach for simplicity if that makes sense

Thanks for asking! I'm good with one shared setting.

@kiteretsu903

Copy link
Copy Markdown
Contributor Author

@rxhanson i’ve followed the new windowmanager patter and pushed the changes to #1904, #1903, and #1907. All three are ready for another look whenever you have a chance. I’d suggest reviewing / merging them in this order: #1904 → #1903 → #1907.

@rxhanson
rxhanson merged commit 634b790 into rxhanson:main Nov 29, 2026
1 check passed
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.

2 participants