diff --git a/Cocoa/AppDelegate.m b/Cocoa/AppDelegate.m index 002a88f..227ae39 100644 --- a/Cocoa/AppDelegate.m +++ b/Cocoa/AppDelegate.m @@ -506,6 +506,14 @@ static uint32_t color_to_int(NSColor *color) } } +- (void)orderFrontAboutPanel:(id)sender +{ + // NSAboutPanelOptionApplicationIcon is not available prior to 10.13, but the key is still there and working. + [[NSApplication sharedApplication] orderFrontStandardAboutPanelWithOptions:@{ + @"ApplicationIcon": [NSImage imageNamed:@"Icon"] + }]; +} + - (void)dealloc { if (_downloadDirectory) { diff --git a/Cocoa/AppIcon.icns b/Cocoa/AppIcon.icns index 6a1e6d4..df89f11 100644 Binary files a/Cocoa/AppIcon.icns and b/Cocoa/AppIcon.icns differ diff --git a/Cocoa/Icon.png b/Cocoa/Icon.png new file mode 100644 index 0000000..a5675ca Binary files /dev/null and b/Cocoa/Icon.png differ diff --git a/Cocoa/Icon@2x.png b/Cocoa/Icon@2x.png new file mode 100644 index 0000000..b3259ed Binary files /dev/null and b/Cocoa/Icon@2x.png differ diff --git a/Cocoa/MainMenu.xib b/Cocoa/MainMenu.xib index 55e31cb..9828172 100644 --- a/Cocoa/MainMenu.xib +++ b/Cocoa/MainMenu.xib @@ -27,7 +27,7 @@ - +