Skip to content

Commit

Permalink
mac: Adapt app icon to Apple rounded rectangle visual style (#1167)
Browse files Browse the repository at this point in the history
* mac: Adapt app icon to Apple rounded rectangle visual style

* fixup the SeamlyME icon, as its set during runtime
  • Loading branch information
csett86 authored Aug 13, 2024
1 parent 6b1d110 commit a2ac30c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
Binary file modified dist/Seamly2D.icns
Binary file not shown.
Binary file modified dist/SeamlyMe.icns
Binary file not shown.
7 changes: 6 additions & 1 deletion src/app/seamlyme/application_me.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,15 @@ ApplicationME::ApplicationME(int &argc, char **argv)
setOrganizationDomain(VER_COMPANYDOMAIN_STR);
// Setting the Application version
setApplicationVersion(APP_VERSION_STR);
// We have been running SeamlyMe in two different cases.

// We have been running SeamlyMe in two different cases on macOS.
// The first inside own bundle where info.plist is works fine, but the second,
// when we run inside Seamly2D's bundle, require direct setting the icon.
#if defined(Q_OS_MAC)
setWindowIcon(QIcon(":/seamlymeicon/1024x1024/logo_mac.png"));
#else //defined(Q_OS_MAC)
setWindowIcon(QIcon(":/seamlymeicon/64x64/logo.png"));
#endif
}

//---------------------------------------------------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions src/app/seamlyme/share/resources/seamlymeicon.qrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<RCC>
<qresource prefix="/">
<file>seamlymeicon/64x64/logo.png</file>
<file>seamlymeicon/1024x1024/logo_mac.png</file>
<file>seamlymeicon/16x16/info.png</file>
<file>seamlymeicon/16x16/measurement.png</file>
<file>seamlymeicon/24x24/fx.png</file>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a2ac30c

Please sign in to comment.