<AWT Dev> [14] Review Request: 8231438 [macos] The dark mode is not supported yet

Hendrik Schreiber hs at tagtraum.com
Thu Oct 10 07:29:15 UTC 2019


> On Oct 10, 2019, at 03:27, Alan Snyder <javalists at cbfiddle.com> wrote:
> 
> I believe your solution works, but shouldn’t you obey NSRequiresAquaSystemAppearance = NO if that appears in the Info.plist?

Yes, you should, IMHO.

Just to add some info “from the field”:

My Swing-based app uses NSRequiresAquaSystemAppearance = NO in its Info.plist and depending on the effective NSApp appearance (read via JNI) either launches the standard macOS L&F or the Darcula L&F. In case the system appearance is Dark, titlebars are turned dark as well using the client property apple.awt.windowDarkAppearance.

I would appreciate, if this functionality stayed an option, i.e., that an app can react to the system setting.

Thanks,

-hendrik



More information about the awt-dev mailing list