Integrated: 8325900: Emit a warning on macOS if AWT has set the NSAppearance
Michael Strauß
mstrauss at openjdk.org
Fri Mar 29 19:19:37 UTC 2024
On Wed, 14 Feb 2024 21:09:39 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:
> 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, the following warning will be emitted if a JavaFX application attempts to use the platform preferences API:
>
>
> WARNING: Reported preferences may not reflect the macOS system preferences unless the sytem
> property apple.awt.application.appearance=system is set. This warning can be disabled by
> setting javafx.preferences.suppressAppleAwtWarning=true.
This pull request has now been integrated.
Changeset: eca32354
Author: Michael Strauß <mstrauss at openjdk.org>
URL: https://git.openjdk.org/jfx/commit/eca323547ec0e84b40bebb213350b6cea5385904
Stats: 71 lines in 5 files changed: 65 ins; 0 del; 6 mod
8325900: Emit a warning on macOS if AWT has set the NSAppearance
Reviewed-by: kcr, mfox
-------------
PR: https://git.openjdk.org/jfx/pull/1367
More information about the openjfx-dev
mailing list