Loop icon indicating copy to clipboard operation
Loop copied to clipboard

✨ Adjustable Blur Radius

Open Soft-Bred opened this issue 1 year ago • 6 comments

Feature Request Description

Wouldn't it be cool if we could also adjust the amount of blur in the footprint preview? It could just be another slider in the preview menu :)

Warp (https://www.warp.dev/) does this, just as an example.

Screenshots

000738@2x 000739@2x 000740@2x

Additional Context

Just for fun ;p

Final Checks

  • [X] My issue title is descriptive
  • [X] This is a single feature request (multiple feature requests should be reported individually)

Soft-Bred avatar Nov 30 '23 16:11 Soft-Bred

Really cool! In addition, I think it'd be cool to be able to add background patterns (ex. a grid) on top of the blur as well!

MrKai77 avatar Nov 30 '23 16:11 MrKai77

oooo, even better, never seen that added to any app 👀

Custom hex code tint maybe too 😄

Soft-Bred avatar Nov 30 '23 16:11 Soft-Bred

Alright, so here's a status update on this:

I looked through iTerm2's source code to set the background blur and it looks like it uses a function called CGSSetWindowBackgroundBlurRadiusFunction, and upon further research, I found that it sets the background blur for a window rather than a view itself. For reference, Loop's preview window is actually a window the size of the screen overlayed on top of everything, with a rectangle view that changes its shape of the rectangle based on the selection window action. Hopefully that makes at least a bit of sense haha

Anyways, I found that this is the function used to make custom blurs of other apps' backgrounds as well, most likely including Warp. So I guess that the way to go would probably convert the preview view into an actual window so that I can apply custom blur effects on it too :D

MrKai77 avatar Jan 20 '24 05:01 MrKai77

@MrKai77 Any update on this?

y-u-s-u-f avatar Feb 17 '24 05:02 y-u-s-u-f

Not yet... but I am planning on doing this soon! For now, I am more focused on fixing bugs :)

MrKai77 avatar Feb 17 '24 05:02 MrKai77

So I guess that the way to go would probably convert the preview view into an actual window so that I can apply custom blur effects on it too :D

Update: With PR #263, I remade the entire preview window to be an actual "window", so that makes implementing this 10x easier!

MrKai77 avatar Mar 26 '24 23:03 MrKai77