summaryrefslogtreecommitdiff
path: root/vendor/github.com
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2018-11-23 19:28:43 +0100
committerKali Kaneko (leap communications) <kali@leap.se>2018-11-23 19:29:12 +0100
commit1e55f578d2682ea1ebad17e9035ab7f7fbd7f091 (patch)
tree23e36655d030c2fafb101dca1fe60af96a61d73c /vendor/github.com
parent91723be390b74b329b7f2c9d68e0bde033066ccf (diff)
[feat] set a bigger icon in darwin
Diffstat (limited to 'vendor/github.com')
-rw-r--r--vendor/github.com/getlantern/systray/systray_darwin.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/getlantern/systray/systray_darwin.m b/vendor/github.com/getlantern/systray/systray_darwin.m
index 3d92868..91cc0de 100644
--- a/vendor/github.com/getlantern/systray/systray_darwin.m
+++ b/vendor/github.com/getlantern/systray/systray_darwin.m
@@ -195,14 +195,14 @@ 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 setSize:NSMakeSize(16, 16)];
+ [image setSize:NSMakeSize(18, 18)];
runInMainThread(@selector(setIcon:), (id)image);
}
void setMenuItemIcon(const char* iconBytes, int length, int menuId) {
NSData* buffer = [NSData dataWithBytes: iconBytes length:length];
NSImage *image = [[NSImage alloc] initWithData:buffer];
- [image setSize:NSMakeSize(16, 16)];
+ [image setSize:NSMakeSize(18, 18)];
NSNumber *mId = [NSNumber numberWithInt:menuId];
runInMainThread(@selector(setMenuItemIcon:), @[image, (id)mId]);