Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
根据这个 Apple 文档,您可以在 Swift 中使用 NSImageNameComputer 来获取显示当前 Mac 的图标。有没有办法在我的 Electron 应用程序前端使用这个图标?
nativeImage解决方案是从 Electron导入,然后你可以这样做:
nativeImage
nativeImage.createFromNamedImage("NSComputer")
然后你可以使用其他nativeImage方法将图片变成你可以使用的格式。
然而,这个问题是我无法修复的低分辨率(32x32)。