By default, DiskSuite Tool uses colors and fonts that are compatible with the OpenWindowsTM desktop applications. This section describes how to change these colors and fonts.
DiskSuite Tool uses a variety of colors:
Standard foreground color - Determines the main colors used to display almost all of the application's elements. The standard background provides the default color for windows, buttons, and other controls.
Standard background color - Provides the color value used to display information presented in windows, buttons, and other controls.
Canvas background color - Provides the background color for data areas. For example, the display areas for the Editor, Disk View window, and scrolling lists all use the canvas background color.
Mapping colors - Display the mappings from logical devices to their slices in the Disk View window. There are eight mapping colors, one for each of the DiskView mappings.
Status colors - Highlight status information for objects needing attention. There are three status conditions requiring unique colors: Attention, Urgent and Critical.
The X Window System RGB (Red, Green, Blue) color specification mechanism enables you to specify a nearly infinite variety of colors. Of course, many of these colors will appear similar, varying only slightly in shade or intensity.
To aid in selecting and specifying colors, the X Window System provides a standard default set of colors that you can specify by name instead of RGB values. This "database" of color names can be examined using the standard X utility showrgb. It shows the RGB values and a corresponding descriptive alias. For example:
# showrgb 199 21 133 medium violet red 176 196 222 light steel blue 102 139 139 paleturquoise4 159 121 238 mediumpurple2 141 182 205 lightskyblue3 0 238 118 springgreen2 255 160 122 light salmon 154 205 50 yellowgreen 178 58 238 darkorchid2 69 139 116 aquamarine4 ... 107 107 107 gray42 71 71 71 gray28 61 61 61 gray24 255 255 255 white 0 205 205 cyan3 0 0 0 black |
You can also examine the default color name database by looking at the /usr/openwin/lib/X11/rgb.txt file.
Unfortunately, there are no standard applications for browsing colors. If you don't have access to a public domain color browser, experiment by trial and error.
DiskSuite Tool's default colors are shown in Table 8-1.
Table 8-1 DiskSuite Tool's Default Colors
Color Type |
Color |
---|---|
Standard Foreground |
black |
Standard Background |
gray |
Canvas Background |
gray66 |
Mapping Colors: |
|
mappingColor1 |
blue |
mappingColor2 |
green |
mappingColor3 |
magenta |
mappingColor4 |
cyan |
mappingColor5 |
purple |
mappingColor6 |
mediumseagreen |
mappingColor7 |
firebrick |
mappingColor8 |
tan |
mappingColor9 |
white |
Status Colors: |
|
Critical |
red |
Urgent |
orange |
Attention |
yellow |
DiskSuite Tool uses four different fonts:
Standard font - Displays almost all text in the tool, for example, in button labels, menus, and dialog boxes.
Mono-spaced (fixed-width) font - Enables consistent columnar alignment, for example, in the various browsers and scrolling lists. This needs to be specified several times.
Bold font - Distinguishes attribute names and labels from the actual attribute values. The names/labels in Information windows appear in the standard font and the corresponding values appear in the bold font. This font is used sparingly.
Small font - Shows the physical devices at the 50 percent scaling level in the Disk View window.
The available fonts depend on which X Window System server you use to display the application. The standard X utility, xlsfonts(1), displays the available fonts on a server. For example:
# xlsfonts --courier-bold-o-normal--0-0-0-0-m-0-iso8859-1 --courier-bold-r-normal--0-0-0-0-m-0-iso8859-1 --courier-medium-o-normal--0-0-0-0-m-0-iso8859-1 --courier-medium-r-normal--0-0-0-0-m-0-iso8859-1 --symbol-medium-r-normal--0-0-0-0-p-0--symbol -symbol-medium-r-normal--0-0-0-0-p-0-sun-fontspecific -adobe-courier-bold-i-normal--0-0-0-0-m-0-iso8859-1 ... utopia-bolditalic utopia-italic utopia-regular variable vshd vtbold vtsingle zapfchancery-mediumitalic zapfdingbats |
Another helpful utility for displaying available fonts is xfontsel(1). Refer to the man pages for these utilities for more information.
DiskSuite Tool's default fonts all come from the Lucida font family:
Table 8-2 DiskSuite Tool's Default Fonts
Font Type |
Font |
---|---|
Standard Font |
lucidasans12 |
Mono-spaced Font |
lucidasans-typewriter12 |
Bold Font |
lucidasans-bold12 |
Small Font |
lucidasans8 |
DiskSuite Tool uses the X Window System's resource database mechanism to determine which fonts to use. The default resource specifications are:
Table 8-3 DiskSuite Tool's Default Font Resource Specifications
Resource |
Font |
---|---|
Metatool*fontList: |
lucidasans12 |
Metatool*smallFontList: |
lucidasans8 |
Metatool*boldFontList: |
lucidasans-bold12 |
Metatool*fixedFontList: |
lucidasans-typewriter12 |
Metatool*XmList.fontList: |
lucidasans-typewriter12 |
Metatool*Help*helpsubjs.fontlist: |
lucidasans-typewriter12 |
Metatool*Help*helptext.fontlist: |
lucidasans-typewriter12 |