-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Is it currently possible to create a (semi-)transparent window on native platforms? #272
Comments
This is not possible yet, but I believe it should be a matter of adding a
Returning
What would be the use case for this? Until these features are implemented, you can achieve all of this by building your event loop on top of |
I am unsure whether Linux and Mac would achieve anything by it, but under Windows it would allow access to a lot of features in the winapi, which are not currently implemented in iced (e.g. transparency). My thought was, that exposing the window handle immutably would be easier / faster than implementing everything directly. However if I can build the loop on winit that covers my use case for the handle, I did not find a way to do that by myself. Thank you for taking the time! |
Please reopen the issue, this feature is generally useful and is not implemented. So actually, wgpu doesn't support window transparency yet: gfx-rs/wgpu#687 But I guess that's not an issue with the GL backend.
I'll try implementing that. |
…fixes iced-rs#272 wgpu would currently ignore the alpha: gfx-rs/wgpu#687 glow (and naively patched wgpu) requires premultiplied alpha, so if you don't multiply the RGB by the A right now, the semi-transparent color would be wrong (too bright). winit with_transparent doesn't seem necessary.
…fixes iced-rs#272 wgpu would currently ignore the alpha: gfx-rs/wgpu#687 glow (and naively patched wgpu) requires premultiplied alpha, so if you don't multiply the RGB by the A right now, the semi-transparent color would be wrong (too bright). winit with_transparent doesn't seem necessary.
Add custom window background/clear color (incl. transparency) support, fixes #272
…fixes iced-rs#272 wgpu would currently ignore the alpha: gfx-rs/wgpu#687 glow (and naively patched wgpu) requires premultiplied alpha, so if you don't multiply the RGB by the A right now, the semi-transparent color would be wrong (too bright). winit with_transparent doesn't seem necessary.
…fixes iced-rs#272 wgpu would currently ignore the alpha: gfx-rs/wgpu#687 glow (and naively patched wgpu) requires premultiplied alpha, so if you don't multiply the RGB by the A right now, the semi-transparent color would be wrong (too bright). winit with_transparent doesn't seem necessary.
The assumption made about |
It seems to not work on MacOS without
I can open a PR to add this, but I'm not too sure since wgpu still doesn't support it. Maybe I could just add a note for people to switch to GL if they need transparency? cc: @hecrj |
@atsuzaki Sounds good. No need to worry about |
I am currently working on a fullscreen overlay on Windows.
There are a few things I am still trying to figure out. That includes:
If anybody could lend a hand, thank you very much!
The text was updated successfully, but these errors were encountered: