在 macOS 使用“液态玻璃风格”的图标替代现有图标,并引入随主题变化图标 #5084
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.




计划引入随主题变化而自动切换图标的功能
部分完成了 #4117,但要随 macOS 26 的系统外观设置显示 Mono 或者 Tinted 的图标依旧需要 App Bundle
对比
价值
或许可以让 HMCL 在 macOS 26 及更高版本程序坞中图标风格没有那么突兀,macOS 15 及更早版本看起来和系统的图标风格相对更加协调,但不清楚这是否会对一些液态玻璃的狂热爱好者发送错误信号
图标工程文件
新:hmcl.icon.zip
旧:hmcl.icon.zip需要做的事情
FXUtils有问题,干脆独立出来)EntryPoint中的isInsideMacAppBundle()放到更适合的地方(例如OperatingSystem)局限性
首次打开的时候依旧会使用默认的白色图标,在
EntryPoint删除图标的初始化虽然看似问题解决但是打开软件会先显示占位图标,综合考量还是选择保留Co-developed with Qwen3-Max