winit/src
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
..
changelog macOS: set the theme on the NSWindow, instead of application-wide 2024-06-20 17:05:34 +03:00
platform Bump version on master 2024-06-15 23:50:40 +03:00
platform_impl macOS: set the theme on the NSWindow, instead of application-wide 2024-06-20 17:05:34 +03:00
application.rs Implement ApplicationHandler for &mut A and Box<A> (#3709) 2024-05-29 11:51:53 +02:00
cursor.rs chore(rustfmt): use nightly (#2325) 2024-04-26 17:11:44 +02:00
error.rs chore(rustfmt): use nightly (#2325) 2024-04-26 17:11:44 +02:00
event.rs macOS: set the theme on the NSWindow, instead of application-wide 2024-06-20 17:05:34 +03:00
event_loop.rs event_loop: remove deprecated run APIs 2024-05-20 20:27:36 +04:00
icon.rs chore(rustfmt): use nightly (#2325) 2024-04-26 17:11:44 +02:00
keyboard.rs chore(rustfmt): use nightly (#2325) 2024-04-26 17:11:44 +02:00
lib.rs Reexport older versions of raw-window-handle 2024-05-06 19:50:25 +04:00
monitor.rs chore(rustfmt): use nightly (#2325) 2024-04-26 17:11:44 +02:00
utils.rs chore: fix some typos in comments (#3635) 2024-04-27 15:29:11 +02:00
window.rs macOS: set the theme on the NSWindow, instead of application-wide 2024-06-20 17:05:34 +03:00