Platform preferences detection doesn't pick up effective macOS system preferences if AWT owns the NSApplication and has set its NSAppearance to a fixed value.
The workaround is to set the system property "apple.awt.application.appearance=system".
If this property is not set, a warning should be emitted if a JavaFX application uses the platform preferences API.
The workaround is to set the system property "apple.awt.application.appearance=system".
If this property is not set, a warning should be emitted if a JavaFX application uses the platform preferences API.
- relates to
-
JDK-8231438 [macOS] Dark mode for the desktop is not supported
- Resolved
-
JDK-8325888 Preferences are not read on macOS if AWT toolkit initialized before FX
- Closed