mirror of
https://github.com/netbirdio/systray.git
synced 2026-05-22 17:08:41 -07:00
Setting icon size explicitly on OS X
This commit is contained in:
@@ -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 setSize:NSMakeSize(16, 16)];
|
||||
runInMainThread(@selector(setIcon:), (id)image);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user