I guess this is OS specific, but I know that at le...
# compose-desktop
j
I guess this is OS specific, but I know that at least on macOS there are apps which change this titlebar colour (ie. IntelliJ does it, iTerm does it, etc) is there a way to do this with my CfD app? I’ve tried switching between dark/light theme and that doesn’t seem to have any effect on the title bar EDIT: ☝️ figured it out, see 🧵 if you’re interested 😄
for anyone else who is curious about this or comes across my question when searching themselves, I’ve found the following: setting
apple.awt.application.appearance=system
in jvmArgs does not work, however, you can get it working by setting that manually at the start of your
main()
function (or just anytime before the Swing host for your Compose window is created):
System.setProperty("apple.awt.application.appearance", "system")
result:
x
yup there’s a thread about this here but i wasn’t aware of that exact flag. @james Do you know where exactly these flags are documented? i know @theapache64 would appreciate this too
👀 1
j
it’s funny you should mention @theapache64.. the project I am working on started with his CfD app template as its base 😄 all I was able to find in terms of documentation was the following: https://bugs.openjdk.java.net/browse/JDK-8235363
😄 3
k
Thanks for sharing this! Dark Mode is the second thing users ask for these days. You're obviously developing on macOS for macOS, whereas I'm on Windows 10. How onerous is it to actually create a CfD program for macOS? I've read up a bit on the .dmg/native builds/app store requirements. Don't mean to hijack the thread, so if you've got lots of good info, maybe we should start another one... Thanks!
👍🏻 1
👍 1
j