setIconAsTemplate

external fun setIconAsTemplate(asTemplate: Boolean): Promise<Void>(source)

Sets the current icon as a template. macOS only

A template image is recolored by the system so it matches the menu bar appearance in light and dark mode.