Cocoa API to detect whether user has chosen "Use dark menu bar and Dock"

Originator:joshparnham
Number:rdar://36501024 Date Originated:January 14 2018
Status:Open Resolved:
Product:macOS + SDK Product Version:macOS 10.13.2 (17C205)
Classification: Reproducible:
 
Area:
AppKit

I write an application that I would like to adapt to macOS' dark mode and use the dark vibrancy mode accordingly.

Currently, the best method to determine whether a user has chosen the dark menu bar and Dock style in the General System Preferences is to read the user's NSGlobalDomain.

If possible, it would be preferable if this information was exposed in a public API. Thanks!

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!