Skip to content
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

feat: Add acrylic blur option for background #2104

Closed
wants to merge 1 commit into from

Conversation

Kethku
Copy link
Member

@Kethku Kethku commented Nov 6, 2023

What kind of change does this PR introduce?

  • Feature

Did this PR introduce a breaking change?

A breaking change includes anything that breaks backwards compatibility either at compile or run time.

  • No

@Kethku Kethku marked this pull request as draft November 6, 2023 08:02
@MultisampledNight MultisampledNight changed the title Add ability to use acrlyic blur on the background feat: ability to use acrlyic blur on the background Nov 6, 2023
@MultisampledNight MultisampledNight changed the title feat: ability to use acrlyic blur on the background feat: ability to use acrylic blur on the background Nov 6, 2023
Comment on lines +174 to +178
#[cfg(target_os = "windows")]
window_vibrancy::apply_acrylic(window, Some(blur_color))
} else {
#[cfg(target_os = "windows")]
window_vibrancy::clear_acrylic(window)
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like macOS could be supported as well, although we'd need someone with a macOS machine to confirm that.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah I mentioned this in the issue. I dont know how the macos arguments work and it was late so I just didnt bother. This PR isn't really mergeable as is and should probably be done with a winit upstream change anyway. I just threw it together as an example

@fredizzimo
Copy link
Member

On Wayland we should use https://docs.rs/winit/latest/winit/window/struct.Window.html#method.set_blur where supported

@Kethku Kethku changed the title feat: ability to use acrylic blur on the background feat: Add acrylic blur option for background Nov 7, 2023
@MultisampledNight MultisampledNight linked an issue Nov 10, 2023 that may be closed by this pull request
@fredizzimo
Copy link
Member

macOS also supports blur through winit in the latest release https://github.com/rust-windowing/winit/releases/tag/v0.29.3, so on that there's now two alternatives, the window-vibrancy crate and the winit one. The vibrancy crate is a bit more flexible, but personally I would prefer if as much as possible was handled by winit, and maybe they could add some extra configuration options.

@regxxxman
Copy link

image
can you help me build

@falcucci
Copy link
Member

falcucci commented Jan 14, 2024

@Kethku @fredizzimo I guess we could proceed with the macOS blurring I've implemented at #2273 after our fix #2272 gets merged, so we could merge your blurred windows OS based afterwards?

the macOS blurring option is really simple to enable and as far as I've using it, works really well with our floating blurred windows.

@fredizzimo
Copy link
Member

fredizzimo commented Jan 26, 2024

@Kethku, I think we should implement this totally with winit now. Acryllic backdrop support was added here, and as mentioned earlier, both macOS and Wayland has blur support.

It needs this though:

@fredizzimo
Copy link
Member

@Kethku
Copy link
Member Author

Kethku commented Feb 1, 2024

The relevant function hasn't actually been released yet so I'm going to hold off on updating this till that gets in.

@Kayzels
Copy link

Kayzels commented Mar 1, 2024

Any news regarding this? I don't want to be pushy, just curious. It's also a minor thing, but it's the main thing stopping me from using Neovide, and sticking to using the terminal.

@Kethku
Copy link
Member Author

Kethku commented Apr 23, 2024

Any news regarding this? I don't want to be pushy, just curious. It's also a minor thing, but it's the main thing stopping me from using Neovide, and sticking to using the terminal.

This is still waiting on an upstream winit release. The necessary code has been merged but not released yet. Plus winit updates in the past have been... tricky. So its gonna be a while yet. Out of our hands for the moment

@Kethku Kethku closed this May 11, 2024
@Kethku Kethku deleted the add-blurred-window-background branch May 11, 2024 23:42
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.

[request] Acrylic window blur
6 participants