[comp.windows.x.motif] Mwm Border Colors

schwarze@isa.de (Jochen Schwarze) (10/12/90)

I have an application window that uses its own colormap. Only two
pixel values, 0 for black and 1 for white, are guaranteed in this
colormap. All other colormap entries are changed frequently. How can I
tell Mwm to use only the two pixel values 0 and 1 for the window
border?

Thank you.
--

Jochen Schwarze                     Domain: schwarze@isa.de
ISA GmbH, Stuttgart, West Germany   UUCP:   schwarze@isaak.uucp
                                    Bang:   ...!uunet!unido!isaak!schwarze

yee@osf.org (Michael K. Yee) (10/14/90)

In article <3204@isaak.isa.de> schwarze@isa.de (Jochen Schwarze) writes:
| I have an application window that uses its own colormap. Only two
| pixel values, 0 for black and 1 for white, are guaranteed in this
| colormap. All other colormap entries are changed frequently. How can I
| tell Mwm to use only the two pixel values 0 and 1 for the window
| border?
| 

	Try putting the following lines in your resource file.  The settings
	are different for 1.0 and 1.1 Mwm.

| Thank you.
| --
| 
| Jochen Schwarze                     Domain: schwarze@isa.de
| ISA GmbH, Stuttgart, West Germany   UUCP:   schwarze@isaak.uucp
|                                     Bang:   ...!uunet!unido!isaak!schwarze

**** For Mwm 1.1

!! COLOR MONOCHROME setup for reduced color systems
!!
Mwm*cleanText:			True
Mwm*armColor:			black
Mwm*troughColor:		black

!! Background Color
Mwm*background: 		white
Mwm*foreground:		 	black
Mwm*activeBackground: 		white
Mwm*activeForeground:	 	black

!! Shadow Color
Mwm*topShadowColor:		black
Mwm*bottomShadowColor:		black
Mwm*activeTopShadowColor:	black
Mwm*activeBottomShadowColor:	black

!! Pixmaps
Mwm*backgroundPixmap:		25_foreground
Mwm*topShadowPixmap:		background
Mwm*bottomShadowPixmap:		foreground
Mwm*activeBackgroundPixmap:	50_foreground
Mwm*activeTopShadowPixmap:	background
Mwm*activeBottomShadowPixmap:	foreground

!! Icon image shadow colors
Mwm*iconImageTopShadowColor:		black
Mwm*iconImageBottomShadowColor:		black
Mwm*iconImageTopShadowPixmap:		50_foreground

!! Matte shadow colors
Mwm*matteTopShadowColor:		black
Mwm*matteBottomShadowColor:		black
Mwm*matteTopShadowPixmap:		50_foreground

!! Menu and feedback pixmaps
Mwm*menu*topShadowPixmap:		50_foreground
Mwm*menu*backgroundPixmap:		background
Mwm*feedback*topShadowPixmap:		50_foreground
Mwm*feedback*backgroundPixmap:		foreground

!! ENDIF COLOR MONOCHROME setup for reduced color systems
#endif

#else
!! MONOCHROME SETUP
!!
!Mwm*armColor:			Black


***** For Mwm 1.0

Mwm*armColor:			white
Mwm*cleanText:				True

Mwm*activeBackground:	 	white
Mwm*activeForeground: 		black
Mwm*background:		 	white
Mwm*foreground: 		black

Mwm*client*activeBackgroundPixmap:	50_foreground
Mwm*client*activeTopShadowPixmap:	foreground
Mwm*client*activeBottomShadowPixmap:	background

!Mwm*client*background:		 	white
!Mwm*client*foreground:	 		black
Mwm*client*backgroundPixmap:		75_foreground
Mwm*client*topShadowPixmap:		foreground
Mwm*client*bottomShadowPixmap:		background

!Mwm*feedback*background:		white
!Mwm*feedback*foreground:	 	black
Mwm*feedback*backgroundPixmap:		50_foreground
!Mwm*feedback*topShadowPixmap:		25_foreground
!Mwm*feedback*bottomShadowPixmap:	background

!Mwm*menu*background:			white
!Mwm*menu*foreground:			black
Mwm*menu*backgroundPixmap:		foreground
!Mwm*menu*topShadowPixmap:		foreground
!Mwm*menu*bottomShadowPixmap:		background

!Mwm*icon*background:		 	white
!Mwm*icon*foreground:	 		black
Mwm*icon*activeBackgroundPixmap:	50_foreground
Mwm*icon*activeBottomShadowPixmap:	foreground
Mwm*icon*backgroundPixmap:		75_foreground
--
= Michael K. Yee		-- yee@osf.org or uunet!osf.org!yee --
= OSF/Motif Senior SW Engineer
= "I can't give you brains, but I can give you a diploma." -- The Wizard of OZ

schwarze@isa.de (Jochen Schwarze) (01/01/91)

I have an application window that uses its own colormap. Only two
pixel values, 0 for black and 1 for white, are guaranteed in this
colormap. All other colormap entries are changed frequently. How can I
tell Mwm to use only the two pixel values 0 and 1 for the window
border?

Thank you.

Jochen Schwarze                     Domain: schwarze@isa.de
ISA GmbH, Stuttgart, West Germany   UUCP:   schwarze@isaak.uucp
                                    Bang:   ...!uunet!unido!isaak!schwarze