git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit ec4c1948f58537a87ce1af5a2b79703ffc60be1d
parent 22f8ab65094b494588372b023214669e0a8a08ce
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat, 18 Jun 2022 22:36:08 +0300

New macOS icon (again)

Diffstat:
MCocoa/AppDelegate.m8++++++++
MCocoa/AppIcon.icns0
ACocoa/Icon.png0
ACocoa/Icon@2x.png0
MCocoa/MainMenu.xib2+-
5 files changed, 9 insertions(+), 1 deletion(-)

diff --git 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 Binary files differ. diff --git a/Cocoa/Icon.png b/Cocoa/Icon.png Binary files differ. diff --git a/Cocoa/Icon@2x.png b/Cocoa/Icon@2x.png Binary files differ. diff --git a/Cocoa/MainMenu.xib b/Cocoa/MainMenu.xib @@ -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"/>

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.