用于处理应用程序的自定义应用程序图标
我编写了一个小型处理应用程序,计划很快发布。仍然缺少的是标题栏/任务栏 (Win) 和 Dock (Mac) 的甜美自定义图标。有什么建议如何做到这一点?
谢谢!
I've written a small Processing App which I'm planning to release soon. What's still missing is a sweet custom icon for Titlebar/Taskbar (Win) and Dock (Mac). Any suggestions how to do this?
Thx!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
与此同时,我自己弄清楚了:
显然,这适用于 Mac OS,方法是替换导出的应用程序中的 sketch.icns 文件,对于 win 和 macOS 来说都是如此。 liunx 是通过将此行添加到您的设置方法中来完成的:
Meanwhile I figured it out on my own:
Obviously this works for Mac OS by replacing the sketch.icns file within the exported app, for win & liunx is done by adding this line to your setup method:
这取决于你是否有艺术天赋。
如果没有,那么您可以聘请图标设计师来设计,或者在网络上搜索免费图标 - 有数十亿个。
如果您有一点艺术天赋,那么您可以获取一个几乎您想要的免费图标,然后对其进行调整。 IcoFX 是一个很棒的免费应用程序,可以用于执行此类操作。
如果您认为自己有能力从头开始绘制图标,那么一个好的计划是使用矢量艺术包。这允许您以多种分辨率导出相同的图形,这样您就可以在您需要的每个图标尺寸(从 16x16 到 256x256)下获得最高质量。或者,在位图编辑器中绘制一个大的 (512x512) 版本,然后根据需要缩小它。只要您开始大尺寸和小尺寸,就不应该有任何问题(尽管要在 16x16 和 32x32 下获得良好的图标,您仍然需要敏锐的洞察力和大量的手动调整)。
It depends if you have any artistic ability or not.
If not, then you can hire an icon designer to do one, or search the web for free icons - there are billions.
If you have a modicum of artisticness, then you could grab a free icon that is almost what you want and then tweak it. IcoFX is a great free application for doing this sort of thing.
If you think you have what it takes to draw an icon from scratch, then a good plan is to use a vector art package. This allows you to export the same graphic at multiple resolutions so you can get top quality at every icons size you need (from 16x16 to 256x256). Alternatively, draw a large (512x512) verison in a bitmap editor and then downscale it as required. As long as you start big and downscale, you shouldn't have any problems (although to get a good icon at 16x16 and 32x32 you will still need a good eye and a lot of manual tweaking).
在您的代码中,只需键入以下行:
对于 Windows/Linux,这样就可以了。对于 Mac/OSX,请按照以下步骤操作:
提示:
In your code, just type this line:
For Windows/Linux, this will do it. For Mac/OSX, follow these steps:
Tips: