From b4756c59441d83469d875ab96d6636c33707c0da Mon Sep 17 00:00:00 2001 From: xenticore Date: Sun, 27 Aug 2023 07:37:42 -0400 Subject: Update macOS icon (#1609) * Add SVG icon * Update macOS icon * Don't force change the application icon at runtime on macOS --- res/melon.icns | Bin 401172 -> 1097288 bytes res/melon.svg | 80 +++++++++++++++++++++++++++++++++++++++++++ src/frontend/qt_sdl/main.cpp | 2 ++ 3 files changed, 82 insertions(+) create mode 100644 res/melon.svg diff --git a/res/melon.icns b/res/melon.icns index b4f3733..b7ad8d5 100644 Binary files a/res/melon.icns and b/res/melon.icns differ diff --git a/res/melon.svg b/res/melon.svg new file mode 100644 index 0000000..6cef68c --- /dev/null +++ b/res/melon.svg @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index de4c09a..12a9906 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -3199,7 +3199,9 @@ void emuStop() MelonApplication::MelonApplication(int& argc, char** argv) : QApplication(argc, argv) { +#ifndef __APPLE__ setWindowIcon(QIcon(":/melon-icon")); +#endif } bool MelonApplication::event(QEvent *event) -- cgit v1.2.3