winit/examples
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
..
data Deprecate window creation with stale event loop 2024-02-21 14:44:29 +04:00
util chore(rustfmt): use nightly (#2325) 2024-04-26 17:11:44 +02:00
child_window.rs event_loop: remove deprecated run APIs 2024-05-20 20:27:36 +04:00
control_flow.rs chore(rustfmt): use nightly (#2325) 2024-04-26 17:11:44 +02:00
pump_events.rs chore(rustfmt): use nightly (#2325) 2024-04-26 17:11:44 +02:00
run_on_demand.rs chore(rustfmt): use nightly (#2325) 2024-04-26 17:11:44 +02:00
window.rs macOS: set the theme on the NSWindow, instead of application-wide 2024-06-20 17:05:34 +03:00
x11_embed.rs chore(rustfmt): use nightly (#2325) 2024-04-26 17:11:44 +02:00