I'm trying to change the tint of the NSVisualEffectView
. This is what I've come up with. Send me a pull request if you know a better way.
- Add a new
NSVisualEffectView
to your main window. - Enable layer backing.
- Loop through the layers and change the
backgroundColor
of the layer called 'ClearCopyLayer'.
No science behind this method.
Changing the material
from light to dark or vice versa removes the custom backgroundColor
. Even if it's applied after changing the material
.
MIT License, see LICENSE
for details.