<html aria-label="message body"><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Hi,</span></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">I hope this is the right place to ask - I would comment in the bug tracker if getting a login there weren’t harder than entering Fort Knox. If this should be posted to another list, please let meknow.<br><div><br></div><div>I have written a POC for dark mode detection that works on Windows, MacOS, and Linux. It is 100% Java, calling native code through FFM, so Java 25 is required. It can detect the current system setting, and also tracks system changes.</div><div><br></div><div>I have released the POC under the GPL V2 with classpath exception to make it compatible with OpenJDK/JavaFX licensing.</div><div><br></div><div>Needs Java 25 and JavaFX correctly set up on your system (JavaFX is only needed because of the JavaFX sample application). No external libraries are needed (in the POC, I changed logging to use the system logger).</div><div><br></div><div>Legal thought</div><div>- I have used web search to find out how to detect and listen to system changes.</div><div>- I have also used AI to implement the necessary calls using FFM as I don’t yet have much experience with it. As everything is quite straight forward (follows established well documented practice for the platform) and the AI mainly helped me to put it into a FFM compatible form, I think there is no risk to inadvertently touch any third party copyright issues. I just want to mention that in case it is seen as a problem</div><div><br></div><div>The POC is available on GitHub: <a href="https://github.com/xzel23/darkmodedetector">https://github.com/xzel23/darkmodedetector</a></div><div><br></div><div>Please let me know if this would be an acceptable contribution, and if so, how to proceed.</div><div><br></div><div>Axel</div><div><br></div><div>PS: Sorry to the mods, I accidentally used the wrong sender previously.</div><div><br></div></div></body></html>