Skip to content
Snippets Groups Projects
Unverified Commit 1e55f578 authored by Kali Kaneko's avatar Kali Kaneko
Browse files

[feat] set a bigger icon in darwin

parent 91723be3
No related branches found
No related tags found
No related merge requests found
......@@ -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]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment