macos:Attractive-appearance
出自UXGuide.net
请帮助我们修订和更新本文的中文部分
本文的中文部分虽然取自官方最新中文版本,但与英文原版相比已落后了一年多,可能无法反映英文版本中最近的修改,且文中笔误、前后译法矛盾、未翻译完全的片断较多,请您帮助一起修订完善。详情参见中文版修订完善计划。
吸引人的界面
Attractive Appearance
One feature that draws users to the Macintosh platform, and to Mac OS X in particular, is the stylish design and attractive appearance of the hardware and software. Although creating attractive hardware and system software is Apple’s job, you should take advantage of the strengths of Mac OS X to give your own software an attractive appearance.
吸引用户使用 Macintosh 平台和 Mac OS X 系统的一个重要特性就是硬件和软件特有的格调和吸引人的外观。尽管生产吸引人的硬件和系统软件是 Apple 的事情,但您仍然可以利用 Mac OS X 来给您自己的软件一个漂亮的界面。
The Finder and other applications that come with Mac OS X use high-resolution, high-quality graphics and icons that include 32-bit color and transparency. Make sure that your applications also use high-quality graphics both for the sake of appearance and to better convey relevant information to users. For example, the system uses pulsing buttons to identify the most likely choice and transparency effects to add a dimensional quality to windows.
Finder 和其他 Mac OS X 系统提供的程序使用的是高分辨率,高质量的,支持透明和 32 位色的图标。确保您的程序同样使用高质量的图片,不仅是为了程序的好看,也是为了更好的向用户传递信息。例如,系统使用闪烁的按钮来标识最可能的选择以及使用透明效果来给窗口增加立体感。
Here are some guidelines to keep in mind as you design the appearance of your software:
下面是程序界面设计的一些准则:
- Follow the guidelines in Part III of this document when designing your user interface. The guidelines offer advice on how to lay out content and design the visual appearance of your software.
遵守本文档第三部分给出的指导准则。这些准则给出了怎样布局和设计您的程序界面的建议。 - From packaging to user interface polish, make sure your software looks professionally designed.
从程序安装包到用户界面,让您的程序看起来经过了专业的设计。- Use high-quality graphics and icons. If needed, contract with a professional graphic design firm to create these for you.
使用高质量的图片和图标。有必要的话,联系专业的设计公司来为您设计。 - Adopt standard Mac OS X user-interface elements, such as controls, menus, and dialogs. Do not implement your own custom controls or dialogs to replace those provided by the system.
采用标准的 Mac OS X 用户接口元素,例如控件,菜单,对话框等。不要试图用自己实现同样功能的控件。 - Refer to the guidelines in this document if you absolutely need a control that is not provided by the system and read “Extending the Interface” before you decide to create a new element or change the behavior or an existing element.
如果您一定需要一个定制的控件而不是系统提供的标准控件,请仔细阅读本文档。在您决定创建一个新的界面元素或者更改一个现有的界面元素的行为之前确保您已经阅读“扩展用户接口” 一节。
- Use high-quality graphics and icons. If needed, contract with a professional graphic design firm to create these for you.
- Use 32-bit color. Mac OS X is optimized to provide the best performance for 32-bit color. You don’t have to limit yourself to an 8-bit color palette for visual elements. Support for 8-bit graphics is minimal and available mostly to support legacy applications.
使用 32 位色。Mac OS X 为 32 位色经过了性能上良好的优化。不要仍然采用 8 位色的调色板。Mac OS X 仍然支持 8 位的调色板只是为了和遗留的程序兼容。 - Use Interface Builder to design your user interface. Even if you do not use the resulting nib files, you can use the metrics provided by Interface Builder to lay out your views and controls precisely in your code. See Interface Builder for an introduction to this application’s features.
使用 Interface Builder 来设计用户接口。即使您并不使用最后的 nib 文件,您也可以使用 Interface Builder 提供的工具来在代码中对您的视图和控件进行精确的布局。关于 Interface Builder 的更多信息请参考 Interface Builder 一节。 - Render your text and graphics using modern APIs such as Quartz, Cocoa, ATSUI, and OpenGL. Avoid using legacy drawing APIs such as QuickDraw.
使用新的 API 来渲染字体和图片,如 Quartz, Cocoa, ATSUI 和 OpenGL 等。避免使用早期的 API 如 QuickDraw 等。