As a software engineer, I've been a big fan of the dark-mode that was added to BigSur OSX. The only problem is that one of my frequently used apps didn't like the new color schema. For instance, if you look at the following screen capture, you'll notice that the menu bar and table headers are black on black.
I did some research and found the following workaround. In OSX, you can disable dark-mode for a specific application.
To do this, you will need to run the following command:
defaults write <BundleID> NSRequiresAquaSystemAppearance -bool yesBut before you run that command, you need to find the <Bundle ID>. I found using the lsappinfo command the easiest way. When you run this command it displays a bunch of information about the current applications that are running. So for me, I just looked for the Luke and found the following?
70) "LukeMain" ASN:0x0-0x305305:
bundleID="net.java.openjdk.cmd"
bundle path="/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin/java"
executable path="/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin/java"
pid = 70611 type="Foreground" flavor=3 Version="1.0" fileType="APPL" creator="java" Arch=x86_64
checkin time = 2021/09/21 18:01:54 ( 9 minutes, 12.5975 seconds ago )
Since my application was Java bases this command did the trick for me.
defaults write net.java.openjdk.cmd NSRequiresAquaSystemAppearance -bool yes
And.... back to normal...