Repository navigation
Add Liquid Glass icons - #11923
Add Liquid Glass icons#11923
Conversation
📝 WalkthroughWalkthroughThe macOS build adds an AppIcon asset catalog with gradient, artwork, shadow, translucency, and platform shape settings. CMake validates Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant CMake
participant actool
participant Audacity
CMake->>actool: Check version
alt actool version is 26.0 or newer
CMake->>actool: Compile AppIcon.icon
actool-->>CMake: Generate Assets.car and AppIcon.icns
CMake->>Audacity: Add generated resources and dependencies
CMake->>Audacity: Set bundle icon file and icon name
else actool is unavailable or older
CMake->>CMake: Stop Icon Composer setup with a warning
end
Merge Risk: 🔵 Low · up to Liquid Glass icons are generated when a supported actool is available, but macOS builds using an older or unavailable actool can produce an app bundle without an icon. Retain the previous ICNS fallback before merge. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Warning Linked repositories: Public OSS repositories can only analyze public repositories installed in this organization. No linked repositories were analyzed; skipped Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Team
Run ID: 04552833-4b67-4697-b347-db4290cdc6f4
📥 Commits
Reviewing files that changed from the base of the PR and between bc62dc3 and 5ca59ea436d785aacee75a44d249bd3151fc6268.
⛔ Files ignored due to path filters (1)
share/icons/AppIcon.icon/Assets/Audacity.svgis excluded by!**/*.svg
📒 Files selected for processing (4)
buildscripts/packaging/MacOS/MacOSXBundleInfo.plist.inshare/icons/AppIcon.icon/icon.jsonshare/icons/CMakeLists.txtsrc/app/CMakeLists.txt
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
5ca59ea to
e3a2f76
Compare
|
I have updated the PR to match repo conventions. |
|
Thank you for your PR. (we try to use as many common solutions for MuseScore and Audacity as possible, so that it will be easier to later transfer these solutions into common scripts) |
a3838e1 to
d181bcb
Compare
|
I have updated the PR matching Musescore per your request. I made one change due to the way Audacity is signed on mac. |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Team
Run ID: 34c4b60a-0f6b-40d2-a04e-32e35916b52d
📥 Commits
Reviewing files that changed from the base of the PR and between e3a2f7617a4b4753e95563faaf42514274ec4a4a and a3838e19a224a8d8022f65412b9534d0e85a668b.
📒 Files selected for processing (3)
share/icons/CMakeLists.txtshare/icons/SetupIconComposerIcon.cmakesrc/app/CMakeLists.txt
🚧 Files skipped from review as they are similar to previous changes (1)
- share/icons/CMakeLists.txt
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Team
Run ID: 04f9167a-1c33-4ba0-bafd-44ad6de2e257
📥 Commits
Reviewing files that changed from the base of the PR and between a3838e19a224a8d8022f65412b9534d0e85a668b and d181bcb0d30f8a23b077ec6d2ee8d5fe68dc73ac.
📒 Files selected for processing (2)
share/icons/SetupIconComposerIcon.cmakesrc/app/CMakeLists.txt
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.
| if(NOT "${actool_version}" VERSION_GREATER_EQUAL "26.0") | ||
| message(WARNING "Could not find actool with version 26.0 or greater." | ||
| " Icon Composer assets will not be generated.") | ||
| return() |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
#!/bin/bash
set -e
printf '%s\n' '--- share/icons/SetupIconComposerIcon.cmake ---'
cat -n share/icons/SetupIconComposerIcon.cmake
printf '%s\n' '--- icon helper references ---'
rg -n -C 4 'SetupIconComposerIcon|AppIcon\.icns|Assets\.car|MACOSX_BUNDLE_ICON_FILE|MACOSX_BUNDLE_ICON_NAME|CFBundleIcon' share src buildscripts CMakeLists.txtRepository: audacity/audacity
Length of output: 9150
🤖 get_repo_knowledge executed:
get_repo_knowledge audacity/audacity /tmp/coderabbit-repo-knowledge/audacity-audacity-1bc7f016/learnings
Length of output: 11791
🏁 Script executed:
#!/bin/bash
set -e
printf '%s\n' '--- macOS icon files and install rules ---'
git ls-files 'share/icons/*' 'src/app/CMakeLists.txt' 'buildscripts/packaging/MacOS/MacOSXBundleInfo.plist.in' | sed -n '1,120p'
printf '%s\n' '--- direct icon variable assignments ---'
rg -n -C 2 'MACOSX_BUNDLE_ICON_FILE|MACOSX_BUNDLE_ICON_NAME|target_setup_iconcomposer_icon|install\(.*icns|RESOURCE' --glob '*.cmake' --glob 'CMakeLists.txt' --glob '*.in' .
printf '%s\n' '--- repository convention ---'
cat /tmp/coderabbit-repo-knowledge/audacity-audacity-1bc7f016/conventions/repo-wide.mdRepository: audacity/audacity
Length of output: 9725
Keep an ICNS fallback for unsupported actool versions.
When actool_version is below 26.0, target_setup_iconcomposer_icon() returns before registering Assets.car or AppIcon.icns. The bundle then has no icon resource, and its plist icon values remain unset.
Retain and install AU4_AppIcon.icns on this path. Set CFBundleIconFile to AppIcon.icns.
Source: Learnings
There was a problem hiding this comment.
This is frustrating because the old code did this, but then I was told to match the existing solution. I'm not sure what I should do next.
There was a problem hiding this comment.
@JoshBashed, you are correct that this is conflicting guidance. Sorry for the confusion.
Do not change this PR solely to satisfy this comment. The PR objective is to match MuseScore’s implementation. The ICNS fallback is a separate compatibility decision.
The technical issue exists only if Audacity must support builds where actool is unavailable or is older than 26.0. If those builds are not supported for Liquid Glass icons, the current implementation is appropriate.
Please ask a maintainer to confirm the supported toolchain policy:
- If
actool26+ is required, keep the current MuseScore-aligned implementation. - If older toolchains must keep an app icon, retain and install
AU4_AppIcon.icnsas a fallback.
I will not treat this as a blocking change until that policy is confirmed.
🧠 Learnings used
Learnt from: JoshBashed
Repo: audacity/audacity PR: 11923
File: buildscripts/packaging/MacOS/MacOSXBundleInfo.plist.in:83-84
Timestamp: 2026-09-04T02:41:29.884Z
Learning: For the macOS app bundle in `buildscripts/packaging/MacOS/MacOSXBundleInfo.plist.in`, macOS falls back to the `CFBundleIconFile` value `AppIcon.icns` when `CFBundleIconName` is `AppIcon` but the build does not install `Assets.car`. Official Audacity builds use `actool` version 26 or later.
You are interacting with an AI system.
There was a problem hiding this comment.
Seems like the humans are having a chat. I'll hop back into my burrow for now. If you need me again, just tag @coderabbitai in a new comment, and I'll come hopping out!
|
Thisi is done, thanks! |
d181bcb to
8947274
Compare
|
@JoshBashed thank you! merged |
Add Liquid Glass icons (#11923)
Resolves: (direct link to the issue)
This PR adds Liquid Glass icons when compiled on macOS 26+ by using
actoolto create anAssets.carand anAppIcon.icns. It now uses the same solution as MuseScore (musescore/MuseScore#31923). The one difference is aLINK_DEPENDSproperty on the generated icons, which Audacity needs because it ad-hoc signs the bundle in aPOST_BUILDstep that only runs when the target relinks.Recommended: