-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Improve transparency on macOS #7965
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing changelog entry.
I'm seeing the same thing I observed in the discussion of #7928: No borders and a white title bar even though
|
The end window opacity is not as it should be, it's just generally more opaque compared to what it was before or glitches. |
Window has opaque title bar and real border when config.window_opacity == 1.
We set the transparency explicitly using `Window::set_transparent` further below, so this is no longer needed on macOS after: rust-windowing/winit#3657
235bfe7
to
39eb966
Compare
I've updated the PR and reverted some of the changes I probably mistakenly thought were for the better, though I'm too unsure of what the desired behaviour is (I don't like transparent windows myself, and don't use Alacritty). The first two commits should bring Alacritty back in line with what it was pre winit 0.30. Would be happy if someone else would take over for the rest. |
Extension upon #7928, see that for discussion. I've improved a bit on the window background, by setting the alpha channel to follow the window opacity.
When
window.opacity < 1
, we do two things: