New macOS icon (again)
This commit is contained in:
parent
22f8ab6509
commit
ec4c1948f5
@ -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
BIN
Cocoa/Icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
BIN
Cocoa/Icon@2x.png
Normal file
BIN
Cocoa/Icon@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.3 KiB |
@ -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"/>
|
||||
|
Loading…
Reference in New Issue
Block a user