[comp.windows.x] Default resources

thomson@hub.toronto.edu (Brian Thomson) (12/13/90)

Please excuse me if this is a stupid question, but can anyone tell me how
to set up an application default file (i.e. in somewhere/X11/app-defaults/Class)
that depends on the display?  Specifically, I want to define a number of
colours for objects if the display supports colour, but on a monochrome
display some of them are indistinguishable from the black background, so I
would like to default them all to white in that case.  I know that I can
get the desired effect if I use xrdb to merge a defaults file, because
xrdb runs the C preprocessor on its input and lets me do

	#ifdef COLOR
		one thing
	#else
		another thing
	#endif

but nothing similar is done for the files in the app-defaults directory.
Any ideas out there?
-- 
		    Brian Thomson,	    CSRI Univ. of Toronto
		    utcsri!uthub!thomson, thomson@hub.toronto.edu