Add Liquid Glass app icon for macOS 26+ (#26862)

This commit is contained in:
quarrel07 authored and GitHub committed 2026-08-06 19:56:33 +02:00
1 parent 26b28153bb
commit 8bfe55af63
11 files changed
+92

No files matched your search

+1
View File
@@ -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.
+2
View File
@@ -24,6 +24,8 @@
<true/>
<key>CFBundleIconFile</key>
<string>openrct2.icns</string>
<key>CFBundleIconName</key>
<string>openrct2</string>
<key>NSHighResolutionCapable</key>
<true/>
</dict>
Binary file not shown.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.
+28
View File
@@ -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`.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 461 KiB

+58
View File
@@ -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"
}
}
Binary file not shown.
+3
View File
@@ -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} \"\" \"\")