Skip to content

feat(gpui): saturate a backdrop blur and mix it towards a tint - #81

Merged
nolight132 merged 1 commit into
masterfrom
feat/backdrop-tint
Nov 27, 2026
Merged

nolight132 merged 1 commit into
masterfrom
feat/backdrop-tint

Conversation

@zxsleebu

Copy link
Copy Markdown
Member

Summary

  • add backdrop_tint, which mixes the blurred backdrop towards a colour with its alpha, so a frosted surface on a see-through window hides what lies under it without hiding more of the desktop than the window does
  • add backdrop_saturate, which saturates the blurred backdrop before the tint, so the colours under a thick tint still come through as a glow
  • draw both in the wgpu, Metal and DirectX backdrop shaders and check them in the shared render fixture

@github-actions github-actions Bot added macos changes the macOS backend windows changes the Windows backend rendering changes the scene, shaders or a renderer labels Nov 27, 2026
@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

This PR adds backdrop_tint and backdrop_saturate styling to backdrop blur. The wgpu, Metal, and DirectX shaders saturate the blurred backdrop, then mix it toward the tint color by the color's alpha and tint amount.

Backdrop styles now support tint and saturation settings. The rendering API passes these settings to backdrop primitives, and the Apple, WGPU, and Windows shaders apply them to sampled backdrop colors. New render fixtures check tinted and saturated output.

Merge Risk: Minimal · up to 489e2

This adds optional backdrop tint and saturation effects with defaults that leave existing blur behavior unchanged. No concrete merge-blocking problem was identified.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@nolight132
nolight132 merged commit 6adab70 into master Nov 27, 2026
3 checks passed
nolight132 added a commit to sonorahq/sonora that referenced this pull request Nov 27, 2026
nolight132 added a commit to sonorahq/sonora that referenced this pull request Nov 27, 2026
…ty (#1774)

* fix(ui): keep the see-through player bar readable at any window opacity

* docs(ui): say how dense the bar surface stays over artwork

* build: move gpui to the merge of sonorahq/gpui#81

---------

Co-authored-by: nolight132 <contact@nolight.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

macos changes the macOS backend rendering changes the scene, shaders or a renderer windows changes the Windows backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants