windows:Windows-environment/windows-desktop-gadgets

出自UXGuide.net

在2010年1月28日 (四) 02:58由Richard.Bao (讨论 | 贡献)所做的修订版本
(差异) ←上一修订 | 当前修订 (差异) | 下一修订→ (差异)
跳转到:导航, 搜索

Windows 桌面小工具
Windows Desktop Gadgets

目录


“小工具”是一种简单的微型应用程序,可以让用户快速访问与其个人相关的信息及一些简单的任务——不会有任何阻碍。例如,天气小工具提供的实时信息让人一目了然,而 CPU 仪表小工具则提供用户愿意监控的系统信息。小工具在视觉上极富吸引力并优化为能够很好地完成单个任务。

Gadgets are part of the desktop, like the Start button, taskbar, and notification area. Unlike normal windows, they aren't represented with a taskbar button.

在 Windows Vista® 中,小工具通常位于边栏(Sidebar)内,边栏是桌面侧边的一个区域。除了贴在边栏上,或称“停靠(docked)”,小工具也可以从边栏分离,“浮动(float)”在桌面的任何位置上。

In Windows 7, there is no Sidebar, so gadgets can be moved freely to any location on the desktop that the user chooses. By default, they are snapped into place along the screen edge to keep them organized.

A gadget has two sizes: small and large. The small size is used to display the information concisely, whereas the large size displays the information in detail. In Windows Vista, these sizes correspond to whether they are docked or floating. When docked, they run in their small size, and when floating they run in their large size. By default in both Windows Vista and Windows 7, the gadget is added to the desktop in its concise, docked state.

These guidelines apply to both Windows Vista and Windows 7 gadgets. You can develop a single gadget that runs on both versions of Windows; however, there are some new features in Windows 7 that you should consider. One difference when designing for Windows 7 is that you should expect gadgets to be displayed in detailed states more often.

小工具还有用于临时显示更多信息的“弹出面板(flyout)”。当单击小工具时会显示弹出面板,而当单击弹出面板之外的任何位置后则会消失。小工具在两种尺寸状态下都可以使用弹出面板。

最后,小工具可以具有用于设置和自定义的选项对话框。

Dd834142_Gadgets01(en-us,MSDN_10).png


In this example, the Weather Gadget (lower left) shows weather information, and the RSS Gadget (center right) is shown with a blog headline flyout.

Dd834142_Gadgets02(en-us,MSDN_10).png


选项对话框示例

致开发人员:关于如何创建小工具,可参考<rbao:OutsideHyperLink NavigateUrl="http://msdn2.microsoft.com/en-us/library/aa965850.aspx">小工具开发概述(英文)</rbao:OutsideHyperLink>。

注:布局相关的设计规范请参考各自相应的章节。


Is this the right user interface?

To decide, consider these questions:


Design concepts

There are several keys to a successful gadget.

A good gadget provides functionality that is useful all the time. If not, users are likely to close the gadget to make the most of their limited desktop space. Gadgets are especially useful for monitoring information, providing functionality that is used throughout the day, and for fun activities like puzzles.

An effective gadget works well in the periphery. Its functionality is easily accessible, but not distracting. Remember that gadgets are shown on the desktop all the time but aren't actively used all the time. You want users to stay focused on their main task. Users will learn where to find your gadget through visual and motor memory, and will be able to access it quickly when needed.

A great gadget does a single, well-defined task very well. Omit extraneous functionality, and make core functionality very easy to access. Use large fonts for the most important information and ensure that the most common activity requires very few clicks. It's better to have multiple gadgets optimized for a single task than one gadget that tries to do everything. By doing so, you give users more control over the functionality they use.

Incorrect:

Dd834142_Gadgets03(en-us,MSDN_10).png


Correct:

Dd834142_Gadgets04(en-us,MSDN_10).png


In the incorrect example, the all-in-one gadget is trying to do several things, but it does none of them well. The single-task gadgets do their tasks better and also give users more control over the functionality they use.

The best gadgets use a visual theme that suitably indicates their singular task. Avoid making the gadget look like a box with a label, an icon, and content. Use meaningful illustrations that convey important information. If your gadget has the functionality of a real appliance, design the gadget to look like or suggest that appliance. For example, make a clock gadget look like a real clock, and a calendar gadget like a real calendar.

When there isn't a direct mapping, try to use visual elements from a real world object that are closely related in a few key ways. For example, a CPU meter can look like a speedometer because they both indicate performance. A currency converter can look like a credit card because they both relate to currency and travel. While these loose analogies are sometimes hard to find, they can make your gadget visually stimulating and uniquely attractive.

Acceptable:

Dd834142_Gadgets05(en-us,MSDN_10).png


Better:

Dd834142_Gadgets06(en-us,MSDN_10).png


In the better example, the gadget uses a credit card metaphor to allude to currency and travel, with a world map background that supports this theme. It also uses uppercase text patterned after the text found on credit cards. By contrast, the first example gadget is a simple box with two fields. Although it displays the information, it is not as rich and compelling as the recommended example.

If there is no suitable visual theme, you can use color and shape to demonstrate its purpose visually.

Dd834142_Gadgets07(en-us,MSDN_10).png


In this example, the gadget uses shapes and colors to indicate the direction in which stocks and market indices are moving.

Lastly, regardless of what visual styles you choose, make your gadget visually attractive. The desktop is prime screen space, and is often seen by users. If you can, work with a professional designer to find an appropriate visual theme and make your gadget look great.

Compared to other Microsoft® Windows® areas, gadgets are especially freeform. There isn't a fixed set of building blocks that can be combined to create a standard looking user interface. This flexibility makes it possible to create uniquely great gadgets, as well as not-so-great ones. Make your gadget unique through its functionality and visualization, but use standard Windows interactions.

If you do only five things...

  1. Perform a single, well-defined task very well.
  2. Provide functionality that is useful all the time.
  3. Make sure the gadget works well in the periphery by being quickly accessible while not being distracting.
  4. Use a visually attractive theme that indicates the gadget's singular task.
  5. Make your gadget unique through its functionality and visualization, but use standard interactions.


Usage patterns

Gadgets have several usage patterns:

Information gadgets

display timely, often aggregated information that changes throughout the day.

Dd834142_Gadgets08(en-us,MSDN_10).png


This gadget shows up-to-date weather conditions.

Utility gadgets

provide functionality that is useful throughout the day.

Dd834142_Gadgets09(en-us,MSDN_10).png


Users can quickly view a calendar.

Fun gadgets

give users a fun way to pass time.

Fun gadgets are often more distracting than other types of gadgets. As a result, users are likely to change them more frequently.

Dd834142_Gadgets10(en-us,MSDN_10).png


This picture puzzle gadget is an example of a game to pass time.

It's important to keep these patterns separated. It's easy to imagine a fun utility gadget becoming tiresome after a couple weeks, or simply taking up more screen space than is justified.


Guidelines

Controls

Dd834142_Gadgets11(en-us,MSDN_10).png
In this example, it's more important for users to read the data in the gadget's passive state. The controls at the bottom of the gadget are hidden until users interact with it.
Dd834142_Gadgets12(en-us,MSDN_10).png
An example of a tooltip with a control label.
Dd834142_Gadgets13(en-us,MSDN_10).png
The Stocks Gadget uses a custom scrollbar that is smaller and has a color that matches the gadget.
Dd834142_Gadgets14(en-us,MSDN_10).png
Examples of standard glyphs for common tasks in gadgets.
Dd834142_Gadgets15(en-us,MSDN_10).png
In this gadget, users can page through four headlines at a time.


States


Interaction

Dd834142_Gadgets18(en-us,MSDN_10).png
In this example, the in-place user input problem needs no icon.
For more guidelines on error, warning, and information message icons, see Standard Icons.


Animation and sound


Options dialog boxes

Dd834142_Gadgets19(en-us,MSDN_10).png
The options dialog box is accessed through the options glyph in the upper-right corner of the gadget.


Windows integration


Recommended sizing and spacing

Dd834142_Gadgets20(en-us,MSDN_10).png
Recommended sizing for gadgets in the detailed/floating and concise/docked states.
Dd834142_Gadgets21(en-us,MSDN_10).png
Recommended sizing for an options dialog box.


Documentation

When referring to Windows Desktop Gadgets:

Examples: Weather Gadget, CPU Meter Gadget.
Example: Dock the gadget by default.
导航
工具箱