On Wed, 10 Sep 2025 23:10:22 GMT, Michael Strauß <[email protected]> wrote:
> 1. Replace undocumented `AppleColorPreferencesChangedNotification` with > `NSSystemColorsDidChangeNotification`. > 2. Replace undocumented `AppleInterfaceThemeChangedNotification` with a KVO > registration for `NSApp.effectiveAppearance`. > > This fix can be tested using either PlatformPreferencesChangedTest, or Monkey > Tester > Tools > Platform preferences monitor. That's probably because the one-second delay to pick up the accent color is no longer necessary with the correct notification APIs. In general, we don't specify how preference change notifications are delivered. I've previously proposed [change aggregation](https://github.com/openjdk/jfx/pull/1810) on the Java side, because multiple notifications are also a thing on Windows. ------------- PR Comment: https://git.openjdk.org/jfx/pull/1895#issuecomment-3287280055
