macos:Positioning-text-and-controls-in-a-bottom-bar

出自UXGuide.net

跳转到: 导航, 搜索

Positioning Text and Controls in a Bottom Bar


As described in “Bottom Bars,” a bottom bar is a part of the window frame that extends below the content in the window body. Controls in a bottom bar are frequently used, but not as frequently used as controls in a toolbar. In addition, bottom-bar controls are closely related to the content in the view directly above them.

To create a bottom bar using Interface Builder, drag a Window object from the Library (do not use a Textured Window object and do not change the window appearance to textured). From the Content Border pop-up menu in the Window Size inspector, choose:

When you do this, Interface Builder creates a dark horizontal line that separates the bottom bar from the window’s content area and gives you the appropriate, light-colored gradient in the bottom bar. You can see examples of this appearance in Mac OS X applications, such as the Finder and iCal.

The layout guidelines for bottom bars focus on visual balance and consistent spacing. Note that the guidelines for both regular-size and small controls recommend fewer pixels above the control than below it. This is because precisely centering controls in a bottom bar makes them too close to the bottom edge and decreases the sense of visual balance.

If you want to use regular-size controls in a bottom bar, use the following layout guidelines (illustrated in Figure 16-25):

Figure 16-25 Layout specifications for a bottom bar with regular-size controls

lyoutregularbbar.jpg

Another way to measure this is to turn on layout rectangles in Interface Builder (choose Layout > Show Layout Rectangles), select the text label, and press Option as you move the pointer over the label. The measurement displayed between the bottom edge of the label’s layout rectangle and the bottom edge of the bottom bar should be 6 pixels.

If you want to use small controls in a bottom bar, use the following layout guidelines (illustrated in Figure 16-26):

Figure 16-26 Layout specifications for a bottom bar with small controls

lyoutsmallbbar.jpg

Another way to measure this is to turn on layout rectangles in Interface Builder (choose Layout > Show Layout Rectangles), select the text label, and press Option as you move the pointer over the label. The measurement displayed between the bottom edge of the label’s layout rectangle and the bottom edge of the bottom bar should be 1 pixel.
个人工具
名字空间
变换
动作
导航
工具箱