Setting XSIM Colors and Fonts


1. Introduction

XSIM colors and fonts can be customized to suit the needs of the user. Colors and fonts are X-window screen resources. To use custom colors or fonts, create a file with the new values, and use the resource database utility xrdb to merge the new values with the existing database.

2. XSIM Colors

2.1. Color resources and default values

XSIM uses thirteen colors whose names and default values are given below.

Resource name

Default value

XSim.black

black

XSim.white

white

XSim.dark

grey75

XSim.light

grey90

XSim.red

red2

XSim.green

seagreen

XSim.blue

cornflowerblue

XSim.purple

purple

XSim.grey

grey55

XSim.brown

brown4

XSim.orange

darksalmon

XSim.foreground

[none]

XSim.background

[none]

Eight colors XSim.black, XSim.gray, XSim.orange, XSim.purple, XSim.brown, XSim.red, XSim.green, and XSIM.blue are used for color choices for curves plotted in the plot areas.

XSim.light and XSIM.dark are used for backgrounds in text fields when the text may (light) or may not (dark) be altered by the user.

XSim.black is used to indicate when a field is active (e.g. a Y parameter field in a plot window), and XSim.white is used for buttons.

XSim.foreground and XSim.background are the foreground and background colors of several XSIM graphical objects.

Note that the defaults given above are those in the standard XSIM distribution. The defaults, especially XSim.background, may have been altered by the system administrator for your installation.

2.2. Using custom colors

If you wish to use colors that are different than the defaults, the X-window utility program xco can be used to view the colors available and determine their names.

If the contents of the file xsim.colors are as shown below:

!XSim.red

IndianRed1

XSim.green

green2

!XSim.blue

LightSkyBlue1

XSim.orange

cyan

merging this file into the X-windows resource database with the command:

xrdb -merge xsim.colors

causes new colors to be used for green and orange. The shade of XSim.green is changed from the default DarkSeaGreen to green2, and an entirely different color, cyan, is used for XSim.orange. Note that the values of XSim.red and XSim.blue are not altered since the lines in xsim.colors with new values for these colors begin with the comment character ``!''. The other four XSIM colors are not changed since the file does not contain new values for them.

3. XSIM Fonts

3.1. Font resources and default values

XSIM uses a set of 21 fonts whose names and default values are shown below. The resource name describes the use of the font by XSIM.

Resource name

Default value

xsim.*.FeedSelect.fontList

-*-new century schoolbook-bold-i-*--20-*=charset1

xsim.*.Ivar.fontList

-*-new century schoolbook-bold-i-*--20-*=charset1

xsim.*.LoopLabel.fontList

-*-new century schoolbook-bold-i-*--20-*=charset1

xsim.*.OptLabel.fontList

-*-new century schoolbook-bold-i-*--20-*=charset1

xsim.*.Parlabel.fontList

-*-new century schoolbook-bold-i-*--17-*=charset1

xsim.*.ResLabel.fontList

-*-new century schoolbook-bold-i-*--20-*=charset1

xsim.*.SensLabel.fontList

-*-new century schoolbook-bold-i-*--20-*=charset1

xsim.*.Txt.fontList

-*-new century schoolbook-bold-i-*--24-*=charset1

xsim.*.Value.fontList

9x15=charset1

xsim.*.XmTextField.fontList

9x15=charset1

xsim.*.database_menu.label_0.fontLi st

-*-lucida-medium-i-*-sans-17-*=charset1

xsim.*.diagnostics.fontList

-bitstream-charter-medium-r-normal--14-100-100- 100-p-78-iso8859-1=charset1

xsim.*.filebox.database.fontList

9x15=charset1

xsim.*.filebox.model.fontList

9x15=charset1

xsim.*.filebox.ref_file.fontList

9x15=charset1

xsim.*.fontList

-*-lucida-bold-r-*-sans-14-*=charset1

xsim.*.helpmsg.fontList

12x24=charset1

xsim.*.model_menu.label_0.fontList

-*-lucida-medium-i-*-sans-17-*=charset1

xsim.*.ref_menu.label_0.fontList

-*-lucida-medium-i-*-sans-17-*=charset1

xsim.*.ref_menu.label_1.fontList

-*-lucida-medium-i-*-sans-17-*=charset1

xsim.*.report.fontList

9x15=charset1

3.2. Using custom fonts

If you wish to use fonts that are different than the defaults, the X-window utility program xfontsel can be used to view the fonts available and determine their names.

The mechanism for specifying custom font resources is similar to that described in section 2.2 for custom colors. Font and color resources may be specified in the same file that is merged with xrdb.



Copyright 1995-1998, University of Washington
Last modified: 01:22pm PDT October 17, 1998