|
|
You can change the colors in any existing palette so that the color schemes of the palettes better suit the needs of your users. You must be logged onto the system as root to perform this task.
To change a color in an existing palette, perform the following steps.
The scocolor client is an excellent tool for previewing different colors and determining how they actually appear on your monitor. The Red, Green, and Blue decimal values that are displayed above the RGB slider bars correspond directly to the RGB values for the colors in the database.
When you decide on a particular color, note the RGB decimal values for the color. You need to specify these values to replace the old color.
A quicker way to determine the RGB values for a color is to examine the rgb.txt file in /usr/lib/X11. This approach is most useful if you already know the color that you want to use but do not know the color's RGB values.
All of the default, system-wide palettes are located in the palettes file in /usr/lib/X11/sco/ScoColor. Palette definitions in this file consist of nine lines of information. The following example shows the definition for the Tropics palette and a description of each line in the definition:
Tropics | Name of palette | ||
---|---|---|---|
62
| 243 | 220 | Background color (RGB values) |
0
| 52 | 44 | Foreground color (RGB values) |
188
| 255 | 247 | Top shadow color (RGB values) |
255
| 255 | 0 | Active background color (RGB values) |
0
| 71 | 67 | Active foreground color (RGB values) |
255
| 255 | 255 | Active top shadow color (RGB values) |
255
| 124 | 171 | Alternate background color (RGB values) |
233
| 160 | 106 | Highlight color (RGB values) |
If you want to save a copy of a default palette before altering it, either make a backup copy of the palettes file or create a new palette, based on the default palette, from within scocolor.