Summary
Under some window managers, the background to HyperHelp may appear dark blue which makes the black text of ArcDoc difficult to read. This document details how to control the fonts and colors used by HyperHelp.
Procedure
Control of the fonts and colors of HyperHelp is performed through the use of X resources. To change the fonts and colors of HyperHelp, issue the following commands while logged in as a regular user.
Code:
% cd ~
Code:
% cp $HHHOME/app-defaults/app-defaults HyperHelp
- Edit your .cshrc file and add the following line:
Code:
setenv XAPPLRESDIR $HOME
- Source this user's .cshrc file:
Code:
% source ~/.cshrc
- Restart HyperHelp
- The fonts and colors of HyperHelp will have changed. If the above actions don't change the fonts or colors to your liking, then modification of the appropriate lines of the $HOME/HyperHelp file will be needed.
- If, for example, you wanted to set the background color for pop-up definition windows to red, you would edit the 10th line of the $HOME/HyperHelp file which currently reads:
Code:
HyperHelp*Definition*Background: white
To read:
Code:
HyperHelp*Definition*Background: red
- Once changes to this file have been made, HyperHelp needs to be restarted for the changes to take effect.
- For a listing of fonts on your system, type either:
Code:
/usr/openwin/bin/xlsfonts | more
or
Code:
/bin/X11/xlsfonts | more
For a listing of valid color names, type:
Code:
more /usr/openwin/lib/X11/rgb.txt
or
Code:
more /usr/lib/X11/rgb.txt
- For systems running CDE (Common Desktop Environment):
From the CDE panel, start the Style Manager > Choose Color > Modify. This window lists the RGB values of a given color. You can display any color by changing the slider controls. This may be helpful in indentifying what the colors represented by the names listed in the rgb.txt file look like. The "Grab Color" button in this window will also help identify the exact RGB value of a color in another application or window.