I have the same question. As stated here (https://stackoverflow.com/questions/62685948/macos-big-sur-detect-dark-menu-bar-system-tray) you can use NSStatusBarButton.isTemplate property to let the OS render the button correct.
However, I want to include color in my button and the documentation of "isTemplate" states that there can only be black color in a template image.
So how can I detect whether the menu bar is currently in dark or light mode to decide whether the outline of my status bar button has to be drawn white/black?
Post
Replies
Boosts
Views
Activity
Any updates on this?
If there is color in the status bar button image using a template image is not feasible since template images can only contain black color.