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?

Answered by joconnor in 410733022

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.

Accepted Answer

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.

How to reference the user's selected accent color
 
 
Q