diff options
| author | Jeremy Stott | 2018-04-10 10:51:10 +1200 | 
|---|---|---|
| committer | Jeremy Stott | 2018-04-10 10:52:02 +1200 | 
| commit | 904c17e31e8a9012213d9674570ca036370d4a0e (patch) | |
| tree | eb7ba33e7d7a83e2863189eaff3f50785080e6d9 | |
| parent | 9ddd647aedba71f782bef029a90964301de03480 (diff) | |
| download | systray-904c17e31e8a9012213d9674570ca036370d4a0e.tar.bz2 | |
Use templated icons for the menu bar in macOS
Fixes getlantern/systray#45
| -rw-r--r-- | systray_darwin.m | 1 | 
1 files changed, 1 insertions, 0 deletions
| 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);  } | 
