Post

Replies

Boosts

Views

Activity

Reply to Big Sur: Detect when menu bar is light/dark
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?
Oct ’20