macOS 文档图标模板?

发布于 2024-09-13 23:13:08 字数 1539 浏览 3 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

人疚 2024-09-20 23:13:08

您可以在 QuickLook 框架中找到各种卷曲图像:

/System/Library/Frameworks/QuickLook.framework/Versions/A/Resources/

然后,您可以将文档图标合成到通用文档图标上,这也可以为您提供卷曲页面图标的掩码:

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

You can find various curl images in the QuickLook framework:

/System/Library/Frameworks/QuickLook.framework/Versions/A/Resources/

You can then composite your document icon over the generic document icon, which also gives you the mask for the curled page icon:

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

紅太極 2024-09-20 23:13:08

您可以使用 iconutil 将充满 .PNG 文件的目录转换为 .ICNS,反之亦然。它随 OS/X 一起提供,是一个命令行程序:

https://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man1/iconutil.1.html

您还可以使用预览从文件。但是要从您提到的文件中提取所有图标及其适当的标签 - 在您想要输出的目录中启动命令终端,然后运行以下命令:

iconutil -c iconset /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericDocumentIcon.icns -o ./GenericDocumentIcon.iconset

如果您要反向操作,请注意在构建 .ICNS 时您正在构建的目录它必须以 .iconset 结尾,并且文件名非常具体。目录中的文件必须命名为:

有关此内容以及 2x 的详细信息,请参阅 OS/X 高分辨率指南

默认的页面卷曲相当“压抑”,尤其是在 16x16 这样的小尺寸下。也许它在空白文档图标上看起来不错,但是当您在上面放置图像时,它就会变得很碍事。我在该分辨率下仔细查看的文档图标通常会软化卷曲的灰色边缘,并且通常会照亮黑暗。

例如,Google Chrome:

chrome icon 16x16 Zoomd up

与默认值:

默认 OS/X 空白文档图标放大

我指出这一点只是因为我认为如果你遵循他们的要求,在 16x16 下制作看起来不错的文档图标有点失败逐字翻页。

You can turn a directory full of .PNG files into an .ICNS or vice-versa using iconutil. It comes with OS/X and is a command-line program:

https://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man1/iconutil.1.html

You can also use Preview to extract individual PNGs out of the file. But to extract all the icons from the file you mention with their appropriate labels -- start up a command terminal in the directory where you want your output, and run this command:

iconutil -c iconset /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericDocumentIcon.icns -o ./GenericDocumentIcon.iconset

If you're going the reverse direction, note that when building an .ICNS the directory you are building it from must end in .iconset and the filenames are very specific. The files in the directory must be named:

For details on that and what the 2x is about, see High Resolution Guidelines for OS/X

The default page curl is rather "oppressive", especially at the small sizes like 16x16. Perhaps it looks good on a blank document icon, but when you're putting an image on it gets in the way. Document icons I looked at up close at that resolution often soften the gray edge on the curl and generally lighten up the darkness.

For instance, Google Chrome:

chrome icon 16x16 zoomed up

vs. the default:

default OS/X blank document icon zoomed up

I point it out just because I think it's a bit of a lost cause to make decent looking document icons at 16x16 if you follow their page curl there verbatim.

樱娆 2024-09-20 23:13:08

docerator 工具,它允许 在此处输入图像描述

There is docerator tool which allows to enter image description here

贵在坚持 2024-09-20 23:13:08

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

将图标格式转换为另一种图形 -格式(以便您可以轻松修改)我可以推荐:

免费图标的重要来源是:

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

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

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文