如何创建一个完美的OS X托盘图标(电子)?

时间:2016-08-30 18:52:44

标签: macos icons electron tray


我正在使用Electron,我想在OS X下创建一个漂亮的托盘图标 我知道如何在系统托盘上放置一个图标,但问题是当我尝试使用我调整大小的图标(16x16,20x20,24x24,32x32)时,它显示为黑色方块。
那么如何从图像中创建漂亮的托盘图标呢?

1 个答案:

答案 0 :(得分:-1)

There are many websites where you can download good icons for free, which you can use for the tray icon.

Check out https://www.iconfinder.com/

To add your own image, use a png image with transparent background. Resize it using photoshop or any other image tools. Remember to save it as png file. I think the black square is because the image is not in png format or the background is not transparent