B4J Question How to detect Dark and Light Mode in Windows 10+

mcqueccu

Well-Known Member
Licensed User
Longtime User
New desktop applications are able to follow the system theme colours or use Default Dark or Light based on users selection, just as it's done in Android.

How can it be achieved using B4J, and to even respond to change during runtime?

I found this resource https://github.com/Dansoftowner/jSystemThemeDetector and look forward to Java experts to help port it to B4J
 

TILogistic

Expert
Licensed User
Longtime User
windows JNA.

sample event log.

Theme Detector read WinReg

https://github.com/Dansoftowner/jSy...a/com/jthemedetecor/WindowsThemeDetector.java}

1635743559862.png

search:
 
Upvote 0
Top