How to reference the user's selected accent color

As of Mohave, there are color options for accent and highlight colors on the General pane of System Preferences. How do I reference these colors in Cocoa using Swift?

Accepted Reply

https://developer.apple.com/documentation/appkit/nscolor/ui_element_colors


Towards the bottom in the "Control Colors" group you'll find controlAccentColor and controlColor.
These are class methods on NSColor.

Replies

https://developer.apple.com/documentation/appkit/nscolor/ui_element_colors


Towards the bottom in the "Control Colors" group you'll find controlAccentColor and controlColor.
These are class methods on NSColor.