From 904c17e31e8a9012213d9674570ca036370d4a0e Mon Sep 17 00:00:00 2001 From: Jeremy Stott Date: Tue, 10 Apr 2018 10:51:10 +1200 Subject: Use templated icons for the menu bar in macOS Fixes getlantern/systray#45 --- systray_darwin.m | 1 + 1 file changed, 1 insertion(+) diff --git a/systray_darwin.m b/systray_darwin.m index f1dc7ac..5b3ddf9 100644 --- a/systray_darwin.m +++ b/systray_darwin.m @@ -159,6 +159,7 @@ void runInMainThread(SEL method, id object) { void setIcon(const char* iconBytes, int length) { NSData* buffer = [NSData dataWithBytes: iconBytes length:length]; NSImage *image = [[NSImage alloc] initWithData:buffer]; + image.template = YES; [image setSize:NSMakeSize(16, 16)]; runInMainThread(@selector(setIcon:), (id)image); } -- cgit v1.2.3