RFR: 8367370: Accent color platform preference not updating in macOS 26 (Tahoe)

Michael Strauß mstrauss at openjdk.org
Sat Sep 13 00:48:39 UTC 2025


On Wed, 10 Sep 2025 23:10:22 GMT, Michael Strauß <mstrauss at openjdk.org> 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


More information about the openjfx-dev mailing list