Skip to content

Add Liquid Glass icons - #11923

Merged
grliszas14 merged 1 commit into
audacity:masterfrom
JoshBashed:glass-icon
Sep 15, 2026
Merged

grliszas14 merged 1 commit into
audacity:masterfrom
JoshBashed:glass-icon

Conversation

@JoshBashed

@JoshBashed JoshBashed commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Resolves: (direct link to the issue)

This PR adds Liquid Glass icons when compiled on macOS 26+ by using actool to create an Assets.car and an AppIcon.icns. It now uses the same solution as MuseScore (musescore/MuseScore#31923). The one difference is a LINK_DEPENDS property on the generated icons, which Audacity needs because it ad-hoc signs the bundle in a POST_BUILD step that only runs when the target relinks.

  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

@coderabbitai

coderabbitai Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The macOS build adds an AppIcon asset catalog with gradient, artwork, shadow, translucency, and platform shape settings. CMake validates actool, compiles the catalog into Assets.car and AppIcon.icns, adds the generated resources to the audacity target, and sets bundle icon metadata. The previous direct icon installation and MACOSX_BUNDLE_ICON_FILE assignment are removed.

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
Loading

Merge Risk: 🔵 Low · up to 89472

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)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly and concisely describes the primary change: adding Liquid Glass icons for macOS.
Description check ✅ Passed The description explains the purpose and implementation, and it completes the checklist. The issue link remains a placeholder, and the optional QA testflow section is not included, but the description…

Warning

Linked repositories: Public OSS repositories can only analyze public repositories installed in this organization. No linked repositories were analyzed; skipped musescore/musescore.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.svg is excluded by !**/*.svg
📒 Files selected for processing (4)
  • buildscripts/packaging/MacOS/MacOSXBundleInfo.plist.in
  • share/icons/AppIcon.icon/icon.json
  • share/icons/CMakeLists.txt
  • src/app/CMakeLists.txt

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@JoshBashed

Copy link
Copy Markdown
Contributor Author

I have updated the PR to match repo conventions.

@Eism

Eism commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Thank you for your PR.
The direction is correct, but I would suggest copy-pasting the solution from MuseScore (which in turn is a copy-paste of the solution from Juce). See musescore/MuseScore#31923

(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)

@JoshBashed
JoshBashed force-pushed the glass-icon branch 2 times, most recently from a3838e1 to d181bcb Compare September 4, 2026 18:15
@JoshBashed

Copy link
Copy Markdown
Contributor Author

I have updated the PR matching Musescore per your request. I made one change due to the way Audacity is signed on mac.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.txt
  • share/icons/SetupIconComposerIcon.cmake
  • src/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.

Comment thread src/app/CMakeLists.txt Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.cmake
  • src/app/CMakeLists.txt

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Comment on lines +41 to +44
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()

@coderabbitai coderabbitai Bot Sep 4, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 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.txt

Repository: 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.md

Repository: 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

@JoshBashed JoshBashed Sep 4, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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 actool 26+ is required, keep the current MuseScore-aligned implementation.
  • If older toolchains must keep an app icon, retain and install AU4_AppIcon.icns as 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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Eism What do you think?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's leave it as is for now

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

@kryksyh kryksyh moved this from Ready For Dev to Ready for QA in [AU4] Release Maintenance Sep 7, 2026
@grliszas14 grliszas14 moved this from Ready for QA to In QA in [AU4] Release Maintenance Sep 7, 2026
@ianalarina ianalarina added this to the Audacity 4.0.1 milestone Sep 7, 2026
@dozzzzer dozzzzer moved this from In QA to Ready for QA in [AU4] Release Maintenance Sep 9, 2026
@chinakov chinakov moved this from Ready for QA to In QA in [AU4] Release Maintenance Sep 15, 2026
@chinakov chinakov self-assigned this Sep 15, 2026
@chinakov chinakov moved this from In QA to Ready for Merge in [AU4] Release Maintenance Sep 15, 2026
@chinakov

Copy link
Copy Markdown
Contributor

Thisi is done, thanks!

@grliszas14
grliszas14 merged commit 0c04fba into audacity:master Sep 15, 2026
8 of 10 checks passed
@github-project-automation github-project-automation Bot moved this from Ready for Merge to Done in [AU4] Release Maintenance Sep 15, 2026
@grliszas14

Copy link
Copy Markdown
Contributor

@JoshBashed thank you! merged

kryksyh added a commit that referenced this pull request Sep 22, 2026
Add Liquid Glass icons (#11923)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

5 participants