New macOS icon (again)

This commit is contained in:
Lior Halphon 2022-06-18 22:36:08 +03:00
parent 22f8ab6509
commit ec4c1948f5
5 changed files with 9 additions and 1 deletions

View File

@ -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) {

Binary file not shown.

BIN
Cocoa/Icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
Cocoa/Icon@2x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

View File

@ -27,7 +27,7 @@
<menuItem title="About SameBoy" id="5kV-Vb-QxS">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="orderFrontStandardAboutPanel:" target="-1" id="Exp-CZ-Vem"/>
<action selector="orderFrontAboutPanel:" target="-1" id="Exp-CZ-Vem"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="VOq-y0-SEH"/>