Skip to content

[macOS] WindowBuilderExt additions for the titlebar - #389

Closed
robertgzr wants to merge 3 commits into
rust-windowing:masterfrom
robertgzr:windowbuilderext-macos
Closed

robertgzr wants to merge 3 commits into
rust-windowing:masterfrom
robertgzr:windowbuilderext-macos

Conversation

@robertgzr

Copy link
Copy Markdown
Contributor

Extends the WindowBuilder on macOS to allow more fine-grained modifications to the way the titlebar is displayed.

@robertgzr

Copy link
Copy Markdown
Contributor Author

This addresses some points in this issue #323

@paulrouget

Copy link
Copy Markdown
Contributor

Do we really need that? Could this be achieved by using WindowExt::get_nswindow() in Alacritty.

Winit could provide sane defaults, and if one wants to do more, use the native handle and do all the tweaks?

@robertgzr

Copy link
Copy Markdown
Contributor Author

@paulrouget

Yes, I guess downstream projects could just use that to achieve the same look and more...
But why not offer these simple switches in winit? Together with #408 this would offer a lot of control over the look of the window, without the user having to delve into the specifics of macOS UI development :)

And regarding the sane defaults, don't we already have them? Depending on with_decorations you either get a default looking window or one without any titlebar/borders.

@paulrouget

Copy link
Copy Markdown
Contributor

I don't have a strong opinion about this. Happy with both approaches.

@robertgzr

Copy link
Copy Markdown
Contributor Author

Closing as it was included in #423

@robertgzr robertgzr closed this Mar 23, 2018
tmfink pushed a commit to tmfink/winit that referenced this pull request Jan 5, 2022
Implement gradient wrap/spread modes in SVG.

Closes rust-windowing#386.
madsmtm pushed a commit to madsmtm/winit that referenced this pull request Jun 11, 2022
* fix(linux): make menubar background transparent

* fix build

* use css provider

* remove shadow

* add changefile

* only when window is transparent

* update change file

* fix typo in changefile

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants