winit/src/platform_impl/macos
Mads Marquart db2c97a995
macOS: set the theme on the NSWindow, instead of application-wide
This new implementation uses:
- The NSAppearanceCustomization protocol for retrieving the appearance
  of the window, instead of using the application-wide
  `-[NSApplication effectiveAppearance]`.
- Key-Value observing for observing the `effectiveAppearance` to compute
  the `ThemeChanged` event, instead of using the undocumented
  `AppleInterfaceThemeChangedNotification` notification.

This also fixes `WindowBuilder::with_theme` not having any effect, and
the conversion between `Theme` and `NSAppearance` is made a bit more
robust.
2024-06-20 17:05:34 +03:00
..
app.rs macOS/iOS: Various refactorings in application state (#3720) 2024-06-06 14:39:31 +02:00
app_state.rs macOS/iOS: Various refactorings in application state (#3720) 2024-06-06 14:39:31 +02:00
cursor.rs Update objc2 to v0.2.2 (#3702) 2024-05-27 14:49:22 +02:00
event.rs Update objc2 to v0.2.2 (#3702) 2024-05-27 14:49:22 +02:00
event_handler.rs macOS/iOS: Various refactorings in application state (#3720) 2024-06-06 14:39:31 +02:00
event_loop.rs chore: address 1.79 clippy lints 2024-06-15 15:26:26 +03:00
ffi.rs chore(rustfmt): use nightly (#2325) 2024-04-26 17:11:44 +02:00
menu.rs Update objc2 to v0.2.2 (#3702) 2024-05-27 14:49:22 +02:00
mod.rs macOS/iOS: Various refactorings in application state (#3720) 2024-06-06 14:39:31 +02:00
monitor.rs Update objc2 to v0.2.2 (#3702) 2024-05-27 14:49:22 +02:00
observer.rs chore: address 1.79 clippy lints 2024-06-15 15:26:26 +03:00
util.rs macOS: Move util::EMPTY_RANGE to usage spot (#3685) 2024-05-06 16:54:52 +02:00
view.rs macOS/iOS: Various refactorings in application state (#3720) 2024-06-06 14:39:31 +02:00
window.rs Update objc2 to v0.2.2 (#3702) 2024-05-27 14:49:22 +02:00
window_delegate.rs macOS: set the theme on the NSWindow, instead of application-wide 2024-06-20 17:05:34 +03:00