rust-windowing / winit

Window handling library in pure Rust
https://docs.rs/winit/
Apache License 2.0
4.55k stars 876 forks source link

macOS: Set the theme on the `NSWindow`, instead of application-wide #3736

Closed madsmtm closed 1 week ago

madsmtm commented 2 weeks ago

This new implementation uses:

This also fixes WindowBuilder::with_theme not having any effect (fixes https://github.com/alacritty/alacritty/issues/8046), and the conversion between Theme and NSAppearance is made a bit more robust.