diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 7e33a10539..9483d0a763 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -2,6 +2,7 @@ ------------------------------------------------------------------------ - Improved: [#26099] The ride type selection cheat has been moved into the ride operations tab. - Improved: [#26099] The ride visiblity cheat has been moved into the ride colour/appearance tab. +- Improved: [#26862] Add a Liquid Glass app icon for macOS 26 and later. - Fix: [#25169] The convert command strips custom objects from the resulting park. - Fix: [#26811] Crash when a ride points to a non-existing station object. diff --git a/distribution/macos/Info.plist b/distribution/macos/Info.plist index 78edcd58c0..41b3a88e2b 100644 --- a/distribution/macos/Info.plist +++ b/distribution/macos/Info.plist @@ -24,6 +24,8 @@ CFBundleIconFile openrct2.icns + CFBundleIconName + openrct2 NSHighResolutionCapable diff --git a/resources/mac/Archived/openrct2.icns b/resources/mac/Archived/openrct2.icns new file mode 100644 index 0000000000..78fbbb2fb6 Binary files /dev/null and b/resources/mac/Archived/openrct2.icns differ diff --git a/resources/mac/openrct2.svg b/resources/mac/Archived/openrct2.svg similarity index 100% rename from resources/mac/openrct2.svg rename to resources/mac/Archived/openrct2.svg diff --git a/resources/mac/Assets.car b/resources/mac/Assets.car new file mode 100644 index 0000000000..73339f5dca Binary files /dev/null and b/resources/mac/Assets.car differ diff --git a/resources/mac/README.md b/resources/mac/README.md new file mode 100644 index 0000000000..9bdcb4e9f4 --- /dev/null +++ b/resources/mac/README.md @@ -0,0 +1,28 @@ +# macOS app icon + +| File | Purpose | +|------|---------| +| `openrct2.icon` | Icon source: an Apple [Icon Composer](https://developer.apple.com/icon-composer/) package (like `.iconset`, but for the layered "Liquid Glass" icons introduced with macOS 26). Contains `icon.json` (layer/material manifest) and the layer artwork. | +| `Assets.car` | Compiled asset catalog, prebuilt from `openrct2.icon`. Bundled into `OpenRCT2.app` and referenced by `CFBundleIconName`; macOS 26 and later renders the layered Liquid Glass icon from it. Prebuilt so building OpenRCT2 does not require Xcode 26. | +| `openrct2.icns` | Flat icon for macOS 15 and earlier, referenced by `CFBundleIconFile`. Extracted from `Assets.car`, so it is the same artwork. | +| `openrct2.pxd` | Editable Pixelmator Pro master for the layer artwork. | +| `Archived/` | The previous (Big Sur era) icon and its vector source. | + +## Regenerating after artwork changes + +Edit `openrct2.icon` in Icon Composer (keep layers as PNG; SVG layers do not +receive the glass material), then from `resources/mac`: + +``` +xcrun actool openrct2.icon --compile out --app-icon openrct2 \ + --output-partial-info-plist out/partial.plist \ + --platform macosx --target-device mac \ + --minimum-deployment-target 11.0 --errors --warnings +cp out/Assets.car Assets.car +iconutil -c icns Assets.car openrct2 -o openrct2.icns +rm -r out +``` + +Requires Xcode 26 or later for `actool` (build machines do not need it; both +artifacts are checked in). The `--app-icon` value, the `.icon` basename, and +`CFBundleIconName` in `distribution/macos/Info.plist` must all stay `openrct2`. diff --git a/resources/mac/openrct2.icns b/resources/mac/openrct2.icns index 78fbbb2fb6..df13989337 100644 Binary files a/resources/mac/openrct2.icns and b/resources/mac/openrct2.icns differ diff --git a/resources/mac/openrct2.icon/Assets/Slide.png b/resources/mac/openrct2.icon/Assets/Slide.png new file mode 100644 index 0000000000..2437a82706 Binary files /dev/null and b/resources/mac/openrct2.icon/Assets/Slide.png differ diff --git a/resources/mac/openrct2.icon/icon.json b/resources/mac/openrct2.icon/icon.json new file mode 100644 index 0000000000..937c18735d --- /dev/null +++ b/resources/mac/openrct2.icon/icon.json @@ -0,0 +1,58 @@ +{ + "color-space-for-untagged-svg-colors" : "display-p3", + "fill" : { + "linear-gradient" : [ + "display-p3:0.23529,0.40000,0.84314,1.00000", + "display-p3:0.76471,0.89804,0.96471,1.00000" + ], + "orientation" : { + "start" : { + "x" : 0.5, + "y" : 1 + }, + "stop" : { + "x" : 0.5, + "y" : 0 + } + } + }, + "groups" : [ + { + "blur-material" : null, + "layers" : [ + { + "image-name" : "Slide.png", + "name" : "Slide" + } + ], + "lighting" : "individual", + "refractivity" : { + "depth" : 0, + "enabled" : false, + "strength" : 0.5 + }, + "shadow" : { + "kind" : "neutral", + "opacity" : 0.6 + }, + "translucency-specializations" : [ + { + "value" : { + "enabled" : true, + "value" : 0.2 + } + }, + { + "appearance" : "dark", + "value" : { + "enabled" : true, + "value" : 0.2 + } + } + ] + } + ], + "supported-platforms" : { + "squares" : "shared" + } +} \ No newline at end of file diff --git a/resources/mac/openrct2.pxd b/resources/mac/openrct2.pxd new file mode 100644 index 0000000000..3ca9c7b043 Binary files /dev/null and b/resources/mac/openrct2.pxd differ diff --git a/src/openrct2-ui/CMakeLists.txt b/src/openrct2-ui/CMakeLists.txt index 8fd3f0bfcc..710d7b496b 100644 --- a/src/openrct2-ui/CMakeLists.txt +++ b/src/openrct2-ui/CMakeLists.txt @@ -177,6 +177,7 @@ if(MACOS_BUNDLE) PUBLIC ${ROOT_DIR}/contributors.md PUBLIC ${ROOT_DIR}/PRIVACY.md PUBLIC ${ROOT_DIR}/resources/mac/openrct2.icns + PUBLIC ${ROOT_DIR}/resources/mac/Assets.car ) # Specify the resources to move to the bundle @@ -186,6 +187,7 @@ if(MACOS_BUNDLE) ${ROOT_DIR}/contributors.md ${ROOT_DIR}/PRIVACY.md ${ROOT_DIR}/resources/mac/openrct2.icns + ${ROOT_DIR}/resources/mac/Assets.car ) if (CMAKE_OSX_ARCHITECTURES MATCHES "${SYSTEM_MACOS_ARCH}") @@ -258,6 +260,7 @@ if(MACOS_BUNDLE) MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/distribution/macos/Info.plist RESOURCE "${BUNDLE_RESOURCES}") + install(CODE " include(BundleUtilities) fixup_bundle(${CMAKE_BINARY_DIR}/${MACOS_APP_NAME} \"\" \"\")