mac系统u盘 系统图标_如何在Mac上提取高质量系统首选项图标

mac系统u盘 系统图标_如何在Mac上提取高质量系统首选项图标

mac系统u盘 系统图标

mac系统u盘 系统图标_如何在Mac上提取高质量系统首选项图标

Sometimes, you need a high-quality icon of from Mac System Preferences for project, but you can’t find a good one online. Luckily, with a little digging, it’s easy to extract a perfect quality System Preference icon with a transparent background using only the Preview app. Here’s how.

有时,您需要Mac系统偏好设置中的高质量图标作为项目,但在线找不到一个好的图标。 幸运的是,通过一点点挖掘,仅使用“预览”应用程序即可轻松提取具有透明背景的完美质量的“系统偏好设置”图标。 这是如何做。

First, we’ll need to locate the actual files that represent the panes in System Preferences using Finder. With Finder active, select Go > Go to Folder from the menu bar at the top of the screen.

首先,我们需要使用Finder在“系统偏好设置”中找到代表窗格的实际文件。 在Finder处于活动状态的情况下,从屏幕顶部的菜单栏中选择“转到”>“转到文件夹”。

mac系统u盘 系统图标_如何在Mac上提取高质量系统首选项图标

In the “Go To Folder” window or slider that appears, type (or paste) /System/Library/PreferencePanes.

在出现的“转到文件夹”窗口或滑块中,键入(或粘贴) /System/Library/PreferencePanes

mac系统u盘 系统图标_如何在Mac上提取高质量系统首选项图标

A Finder window will appear that includes files that correspond with the default preference panes you see in System Preferences.

将出现一个Finder窗口,其中包含与您在“系统偏好设置”中看到的默认偏好设置窗格相对应的文件。

(Note: If you are looking for a third-party preference pane file, check /Library/PreferencePanes instead.)

(注意:如果要查找第三方首选项窗格文件,请改用/Library/PreferencePanes 。)

mac系统u盘 系统图标_如何在Mac上提取高质量系统首选项图标

Locate the file representing the preference pane from which you’d like to extract an icon. It should have a recognizable name. For example, “PrintAndScan.prefPane” is the file for “Printers & Scanners,” and “SoftwareUpdate.prefPane” is the file for “Software Update.”

找到代表您要从中提取图标的首选项窗格的文件。 它应该具有可识别的名称。 例如,“ PrintAndScan.prefPane”是“打印机和扫描仪”的文件,而“ SoftwareUpdate.prefPane”是“软件更新”的文件。

Each “.prefPane” file is actually a special type of folder called a “package.” We’re going to open up that package and see the resources inside.

每个“ .prefPane”文件实际上都是一种特殊的文件夹,称为“包”。 我们将打开该程序包并查看其中的资源。

Once you find the preference pane file, right-click it and select “Show Package Contents.”

找到首选项窗格文件后,右键单击它,然后选择“显示软件包内容”。

mac系统u盘 系统图标_如何在Mac上提取高质量系统首选项图标

The app package will open, and you’ll see a “Contents” folder. Open it, and within “Contents,” you’ll encounter several folders and files. Locate the “Resources” folder and open it.

该应用程序包将打开,您将看到一个“目录”文件夹。 打开它,在“目录”中,您将遇到几个文件夹和文件。 找到“资源”文件夹并打开它。

mac系统u盘 系统图标_如何在Mac上提取高质量系统首选项图标

Browse within the Resources folder and look for an “.icns” file with a similar name to the preference pane you’re examining. For example, “SoftwareUpdate.prefPane” includes a file called “SoftwareUpdate.icns.” This is an icon package file that contains different-sized icons for the prefernce pane. Double-click it, and it will open in Preview.

在“资源”文件夹中浏览,并查找与您正在检查的首选项窗格名称相似的“ .icns”文件。 例如,“ SoftwareUpdate.prefPane”包括一个名为“ SoftwareUpdate.icns”的文件。 这是一个图标包文件,其中包含用于首选项窗格的不同大小的图标。 双击它,它将在“预览”中打开。

mac系统u盘 系统图标_如何在Mac上提取高质量系统首选项图标

In Preview, you’ll see that the “.icns” file includes icons in multiple sizes. The largest one will be at the top of the list in the pane on the left. Click to select it.

在“预览”中,您将看到“ .icns”文件包含多种尺寸的图标。 最大的一个将在左侧窗格的列表顶部。 单击以选中它。

mac系统u盘 系统图标_如何在Mac上提取高质量系统首选项图标

Once you’ve selected the largest icon, click File > Export in the menu bar.

选择最大的图标后,在菜单栏中单击文件>导出。

mac系统u盘 系统图标_如何在Mac上提取高质量系统首选项图标

When the Export dialog appears, enter a file name and choose a save location. Next, you’ll need to decide an image format. If you want the highest quality image with a transparent background, select “PNG” from the list. (Make sure the “Alpha” option is checked, because this ensures that the PNG will have a transparent background.)

出现“导出”对话框时,输入文件名并选择一个保存位置。 接下来,您需要确定图像格式。 如果要使用透明背景的最高质量图像,请从列表中选择“ PNG”。 (确保选中“ Alpha”选项,因为这可以确保PNG具有透明背景。)

Then click “Save.”

然后点击“保存”。

mac系统u盘 系统图标_如何在Mac上提取高质量系统首选项图标

Preview will save the icon you chose as a transparent PNG file. After that, close Preview, and you’ll find the new PNG file waiting where you saved it. Very handy!

预览会将您选择的图标保存为透明的PNG文件。 之后,关闭“预览”,您将在保存新PNG文件的地方找到它。 非常便利!

翻译自: https://www.howtogeek.com/689770/how-to-extract-high-quality-system-preference-icons-on-a-mac/

mac系统u盘 系统图标