Skip to content

Don't set the background color when initializing with transparency#3657

Merged
madsmtm merged 3 commits into
masterfrom
madsmtm/macos-background-color
Apr 27, 2024
Merged

Don't set the background color when initializing with transparency#3657
madsmtm merged 3 commits into
masterfrom
madsmtm/macos-background-color

Conversation

@madsmtm
Copy link
Copy Markdown
Member

@madsmtm madsmtm commented Apr 27, 2024

Setting the background color changes how the window title bar appears, which is something that the application should customize itself if it wants this behaviour (and also, it wasn't set when calling set_transparent, so the behaviour wasn't consistent).

This was introduced all the way back in #853, so I can't really tell what the reasoning behind it was, but I assume it was for the examples to show better (i.e. setting the window as transparent worked even when not rendering into it).

  • Tested on all platforms changed
  • Added an entry to the changelog module if knowledge of this change could be valuable to users

Related: alacritty/alacritty#7928

@madsmtm madsmtm added B - bug Dang, that shouldn't have happened DS - appkit Affects the AppKit/macOS backend labels Apr 27, 2024
@madsmtm madsmtm force-pushed the madsmtm/macos-background-color branch from 6cc5499 to a12af15 Compare April 27, 2024 13:09
Setting the background color changes how the window title bar appears,
which is something that the application should customize itself if it
wants this behaviour (and also, it wasn't set when calling
`set_transparent`, so the behaviour wasn't consistent).
@madsmtm madsmtm force-pushed the madsmtm/macos-background-color branch from a12af15 to f8baa5e Compare April 27, 2024 13:09
@madsmtm madsmtm merged commit 94664ff into master Apr 27, 2024
@madsmtm madsmtm deleted the madsmtm/macos-background-color branch April 27, 2024 13:41
kchibisov pushed a commit that referenced this pull request Apr 27, 2024
…3657)

Setting the background color changes how the window title bar appears,
which is something that the application should customize itself if it
wants this behaviour (and also, it wasn't set when calling
`set_transparent`, so the behaviour wasn't consistent).
madsmtm added a commit to madsmtm/alacritty that referenced this pull request Jun 6, 2024
We set the transparency explicitly using `Window::set_transparent`
further below, so this is no longer needed on macOS after:
rust-windowing/winit#3657
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

B - bug Dang, that shouldn't have happened DS - appkit Affects the AppKit/macOS backend

Development

Successfully merging this pull request may close these issues.

2 participants