更新时间:2023-12-04 20:09:28
状态栏图标需要是模板图像.只需将 setTemplate:Yes 设置为 NSImage.当切换到暗模式时,应该会产生活力.
The Status bar icon needs to be a template image. Just set the setTemplate:Yes to NSImage. And when switched to dark mode , the vibrancy should apply.
如何在 Yosemite 中检测暗模式以更改状态栏菜单图标