How to change the titlebar/toolbar and NSButtons to a dark theme?

Viewed 1239

I am working on a project for macOS (OS X) where I want the window to be set to a dark theme instead of the default light theme, which has a light gray titlebar/toolbar with white buttons.

How can I change the titlebar/toolbar to a black color and the buttons to a dark gray?

I am coding in Swift but an answer in Objective-C would also be helpful. I have attached an image of what I am aiming to make it look like:

What I want it to look like

2 Answers
Related