[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Integrated: 8325900: Emit a warning on macOS if AWT has set the NSAppearance
From:       Michael =?UTF-8?B?U3RyYXXDnw==?= <mstrauss () openjdk ! org>
Date:       2024-03-29 19:19:37
Message-ID: DAosoJ_caR2BnkUkfp2wwoJowRlZgFyRaONrYfYE-lU=.df244f89-ed1b-445b-9d68-8dfa0112d163 () github ! com
[Download RAW message or body]

On Wed, 14 Feb 2024 21:09:39 GMT, Michael Strauß <mstrauss@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@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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic