macOS文档图标模板? [英] macOS document icon template?

查看:42
本文介绍了macOS文档图标模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面的原始问题已被时间所取代:如今,您不再需要为文档提供图标或图标集,因为macOS将从应用程序图标和系统文档图标模板中生成一个标准图标.参见 https://developer.apple.com/news/?id=5i6jlf4d 这似乎是最近的事态发展,链接中的文档日期为2021年1月.

The original question below has been overtaken by time: these days you do not have to supply icons or icon sets for your documents any more, as macOS will generate a standard icon out of your application icon and the system document icon template. See https://developer.apple.com/news/?id=5i6jlf4d This seems a recent development, the document in the link is dated January 2021.

您仍然必须在plist中提供CFBundleDocumentTypes,以将文档扩展名绑定到您的应用程序,但省去CFBundleTypeIconFile,您可以使用该CFBundleTypeIconFile将自己的图标集附加到文档上.

You still have to supply CFBundleDocumentTypes in your plist, to bind the document extension to your application, but leave out CFBundleTypeIconFile that you can use to attach your own iconset to your documents.

原始问题:Mac OS X文档图标是否有可用的模板?它看起来像一张白色的纸,右上角向下弯曲.许多应用程序似乎都使用此图标作为自己的自定义文档类型的基础.是否每个人都使用基本形状的模板,还是每个开发人员都必须从头开始绘制自己的模板?

Original question: Is there a template available for the Mac OS X document icon? It looks like a white piece of paper with the top right corner curled down. Lots of applications seem to use this icon as a base for their own custom document types. Does everyone use a template for the basic shape, or does every developer have to draw their own from scratch?

我知道您可以在此处获得普通文档图标:

I know you can get the plain document icon here:

/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericDocument.icns

但这是 .icns 格式,而不是我可以轻松编辑的格式.另外,如果您希望文档背景不是白色,这也不容易.

But that is in .icns format rather than a format I can easily edit. Also, it doesn't make it easy if you want the document background to be anything but white.

如果每个图标大小(512、256、128、32、16)都有一个Photoshop(.psd)模板,那就太好了.

It would be great if there is a Photoshop (.psd) template available for each icon size (512, 256, 128, 32, 16).

推荐答案

有几种工具可以将您的图像(在Photoshop中绘制)转换为图标格式:

There are several tools, that converts your image (drawn in Photoshop) into an icon-format:

  • Iconeer
  • Img2icns
  • IconBuilder
  • Pic2Icon (seems to be not supported any longer)
  • FastIcns

要将图标格式转换为另一种图形格式(以便您可以轻松修改),我建议:

To convert an icon-format into another graphic-format (so you can easily modify) I can recommend:

免费图标的主要来源是:

Greate sources for free icons are:

请阅读您下载的套装的许可证!您可以在那里下载许多免费图标,然后重新使用它们甚至进行修改.然后,您可以使用上述工具将它们转换回图标格式.

Please read the licence of the sets you download! You can download a lot of free icons there and reuse them or even modify them. Then you can convert them back into the icon-format with the tools mentioned above.

这篇关于macOS文档图标模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆