title: Java application not using dark title bars even though have implemented NSRequiresAquaSystemAppearance = False
body: <p>I have implemented a Dark Mode for my Java application (using <a href="https://www.formdev.com/flatlaf/" rel="nofollow noreferrer">flatlaf</a>) but the title bar has light appearance even when MacOS itself it set to use Dark Mode. The possible solution is to set <strong>NSRequiresAquaSystemAppearance</strong> to <strong>false</strong> in the <strong>Info.plist</strong> file. I have done this as part of building the appbundle (with <a href="https://github.com/TheInfiniteKind/appbundler" rel="nofollow noreferrer">TheInfiniteKind fork of appbundler</a>) but it is not working for me</p>
  <p>This is the contents of the generated <strong>Info.plist</strong> file</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; ?&gt;
  &lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
  &lt;plist version=&quot;1.0&quot;&gt;
  &lt;dict&gt;
  &lt;key&gt;CFBundleDevelopmentRegion&lt;/key&gt;
  &lt;string&gt;English&lt;/string&gt;
  &lt;key&gt;CFBundleExecutable&lt;/key&gt;
  &lt;string&gt;SongKong&lt;/string&gt;
  &lt;key&gt;CFBundleIconFile&lt;/key&gt;
  &lt;string&gt;songkong.icns&lt;/string&gt;
  &lt;key&gt;CFBundleIdentifier&lt;/key&gt;
  &lt;string&gt;com.jthink.songkong&lt;/string&gt;
  &lt;key&gt;CFBundleDisplayName&lt;/key&gt;
  &lt;string&gt;SongKong&lt;/string&gt;
  &lt;key&gt;CFBundleInfoDictionaryVersion&lt;/key&gt;
  &lt;string&gt;6.0&lt;/string&gt;
  &lt;key&gt;CFBundleName&lt;/key&gt;
  &lt;string&gt;SongKong&lt;/string&gt;
  &lt;key&gt;CFBundlePackageType&lt;/key&gt;
  &lt;string&gt;APPL&lt;/string&gt;
  &lt;key&gt;CFBundleShortVersionString&lt;/key&gt;
  &lt;string&gt;8.2&lt;/string&gt;
  &lt;key&gt;CFBundleVersion&lt;/key&gt;
  &lt;string&gt;1.0&lt;/string&gt;
  &lt;key&gt;CFBundleHelpBookFolder&lt;/key&gt;
  &lt;string&gt;SongKongHelp&lt;/string&gt;
  &lt;key&gt;CFBundleHelpBookName&lt;/key&gt;
  &lt;string&gt;com.jthink.songkong.Help&lt;/string&gt;
  &lt;key&gt;CFBundleAllowMixedLocalizations&lt;/key&gt;
  &lt;true/&gt;
  &lt;key&gt;CFBundleSignature&lt;/key&gt;
  &lt;string&gt;sgkg&lt;/string&gt;
  &lt;key&gt;NSHumanReadableCopyright&lt;/key&gt;
  &lt;string&gt;&lt;/string&gt;
  &lt;key&gt;LSMinimumSystemVersion&lt;/key&gt;
  &lt;string&gt;10.7&lt;/string&gt;
  &lt;key&gt;LSApplicationCategoryType&lt;/key&gt;
  &lt;string&gt;public.app-category.music&lt;/string&gt;
  &lt;key&gt;LSUIElement&lt;/key&gt;
  &lt;false/&gt;
  &lt;key&gt;NSHighResolutionCapable&lt;/key&gt;
  &lt;true/&gt;
  &lt;key&gt;NSSupportsAutomaticGraphicsSwitching&lt;/key&gt;
  &lt;true/&gt;
  &lt;key&gt;IgnorePSN&lt;/key&gt;
  &lt;false/&gt;
  &lt;key&gt;NSRequiresAquaSystemAppearance&lt;/key&gt;
  &lt;false/&gt;
  &lt;key&gt;JVMRuntime&lt;/key&gt;
  &lt;string&gt;temurin-17.jdk&lt;/string&gt;
  &lt;key&gt;JREPreferred&lt;/key&gt;
  &lt;false/&gt;
  &lt;key&gt;JDKPreferred&lt;/key&gt;
  &lt;false/&gt;
  &lt;key&gt;JVMMainClassName&lt;/key&gt;
  &lt;string&gt;com.jthink.songkong.cmdline.SongKong&lt;/string&gt;
  &lt;key&gt;JVMDebug&lt;/key&gt;
  &lt;false/&gt;
  &lt;key&gt;CFBundleDocumentTypes&lt;/key&gt;
  &lt;array&gt;
  &lt;dict&gt;
  &lt;key&gt;CFBundleTypeExtensions&lt;/key&gt;
  &lt;array&gt;
  &lt;string&gt;mp3&lt;/string&gt;
  &lt;string&gt;wma&lt;/string&gt;
  &lt;string&gt;ogg&lt;/string&gt;
  &lt;string&gt;flac&lt;/string&gt;
  &lt;string&gt;wav&lt;/string&gt;
  &lt;string&gt;aif&lt;/string&gt;
  &lt;string&gt;aiff&lt;/string&gt;
  &lt;string&gt;aifc&lt;/string&gt;
  &lt;/array&gt;
  &lt;key&gt;LSTypeIsPackage&lt;/key&gt;
  &lt;false/&gt;
  &lt;key&gt;CFBundleTypeName&lt;/key&gt;
  &lt;string&gt;Music Files&lt;/string&gt;
  &lt;key&gt;CFBundleTypeRole&lt;/key&gt;
  &lt;string&gt;Editor&lt;/string&gt;
  &lt;/dict&gt;
  &lt;/array&gt;
  &lt;key&gt;LSArchitecturePriority&lt;/key&gt;
  &lt;array&gt;
  &lt;/array&gt;
  &lt;key&gt;LSEnvironment&lt;/key&gt;
  &lt;dict&gt;
  &lt;key&gt;LC_CTYPE&lt;/key&gt;
  &lt;string&gt;UTF-8&lt;/string&gt;
  &lt;/dict&gt;
  &lt;key&gt;JVMOptions&lt;/key&gt;
  &lt;array&gt;
  &lt;string&gt;-Dcom.mchange.v2.log.MLog=com.mchange.v2.log.jdk14logging.Jdk14MLog&lt;/string&gt;
  &lt;string&gt;-Dorg.jboss.logging.provider=jdk&lt;/string&gt;
  &lt;string&gt;-Djava.util.logging.config.class=com.jthink.songkong.logging.StandardLogging&lt;/string&gt;
  &lt;string&gt;-Dapple.laf.useScreenMenuBar=true&lt;/string&gt;
  &lt;string&gt;-Dapple.awt.brushMetalLook=true&lt;/string&gt;
  &lt;string&gt;-Dsun.java2d.metal=true&lt;/string&gt;
  &lt;string&gt;-XX:+HeapDumpOnOutOfMemoryError&lt;/string&gt;
  &lt;/array&gt;
  &lt;key&gt;JVMDefaultOptions&lt;/key&gt;
  &lt;dict&gt;
  &lt;/dict&gt;
  &lt;key&gt;JVMArguments&lt;/key&gt;
  &lt;array&gt;
  &lt;/array&gt;
  &lt;key&gt;NSRequiresAquaSystemAppearance&lt;/key&gt;
  &lt;false/&gt;
  &lt;key&gt;AppleWindowTabbingMode&lt;/key&gt;
  &lt;string&gt;manual&lt;/string&gt;
  &lt;/dict&gt;
  &lt;/plist&gt;
  </code></pre>