Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!shelby!sri-unix!hplabs!hplabsz!mayer From: mayer@hplabsz.HP.COM (Niels Mayer) Newsgroups: comp.windows.x.motif Subject: Re: 16 colors with MWM Message-ID: <6566@hplabsz.HP.COM> Date: 9 Feb 91 21:01:35 GMT References: <1991Feb6.135146.2576@news.larc.nasa.gov> <403@uucs1.UUCP> Reply-To: mayer@hplabs.hp.com (Niels Mayer) Organization: Hewlett-Packard Labs, Software & Systems Lab, Palo Alto, CA. Lines: 214 Summary: Expires: Sender: Followup-To: Distribution: In article <403@uucs1.UUCP> gaf@uucs1.UUCP () writes: >(J. Keith Alston) writes: >> When I run this application under >> the Motif window manager it only displays about 5 colors, >> when I run under UWM I get all 16 colors. > > The Motif Window Manager (mwm) gobbles colors for its own use. > Remember, that 3-D effect is achieved by using 3 colors (highlight, > background, shadow) for the window frame with the focus and 3 colors > (highlight, background, shadow) for windows without the focus. Then 2 > more for active foreground & inactive foreground, for a total of 8. mwm does not have to gobble colors. If you are running on a system with limited # of planes, you should set up a "color scheme" in which you decide that you will use color X for all foregrounds of applications, Y for all backgrounds, Z for topshadow colors, and W for bottomshadows... In this way multiple applications and multiple widgets will be sharing color planes. In my experience, this is absolutely necessary for systems with 4our and 6ix planes, but with 8 or more planes, you may let Motif run wild. > In the 1.0.* releases it gobbles the colormap entries even if it doesn't > use them (e.g. if you use black for active & inactive foreground and > shadow colors). Does setting "mwm*makeColors: none" help?? > If you have a 16 cell colormap with an application which needs to display > 16 colors simultaneously, you can either use a server with a bigger > colormap (we switched from VGA to a Paradise 8514/A) or have the app > install its own colormap (which will make other apps' colors look wrong). I don't think you need to do this if you follow the advice above (and below). -------------------- Here are some examples I have from the days when I had a 4 plane display. Some of these resources may be invalid, since I was using Motif 0.7 at the time: -------------------- Mwm*makeColors: none Mwm*foreground: White Mwm*background: BlueViolet Mwm*topShadowColor: LightBlue Mwm*topShadowTile: foreground Mwm*bottomShadowColor: Black Mwm*bottomShadowTile: foreground Mwm*icon*topShadowColor: LightBlue Mwm*icon*bottomShadowColor: Black Mwm*client*foreground: White Mwm*client*background: BlueViolet Mwm*client*topShadowColor: LightBlue Mwm*client*bottomShadowColor: DimGrey Mwm*client*activeTopShadowColor: White Mwm*client*activeBottomShadowColor: Black Mwm*client*topShadowTile: foreground Mwm*client*bottomShadowTile: foreground Mwm*client*activeTopShadowTile: foreground Mwm*client*activeBottomShadowTile: foreground Mwm*makeActiveColors: none Mwm*activeForeground: Yellow Mwm*activeForeground: DarkOrchid Mwm*activeBackground: DarkOrchid Mwm*activeBackground: Pink Mwm*activeTopShadowColor: Wheat Mwm*activeBottomShadowColor: DimGrey Mwm*makeIconColors: none Mwm*iconImageForeground: White Mwm*iconImageBackground: DarkOrchid Mwm*iconImageForeground: White Mwm*iconImageBackground: MidnightBlue Mwm*iconImageTopShadowColor: Black Mwm*iconImageTopShadowTile: foreground Mwm*iconImageBottomShadowColor: LightBlue Mwm*iconImageBottomShadowTile: foreground Mwm*makeMatteColors: none Mwm*matteBackground: DarkSlateGrey Mwm*matteForeground: Yellow -------------------- Incase anybody cares, here's my current mwm settings: # # MWM # Mwm*iconBoxGeometry: 14x1+0+0 Mwm*buttonBindings: ButtonBindings Mwm*keyBindings: KeyBindings Mwm*useIconBox: True Mwm*iconBoxSBDisplayPolicy: vertical Mwm*iconAutoPlace: True Mwm*fadeNormalIcon: True Mwm*iconDecoration: label image activelabel Mwm*iconPlacement: top left Mwm*iconPlacementMargin: 0 Mwm*iconbox*clientDecoration: maximize minimize menu Mwm*iconbox*troughColor: Grey Mwm*iconClick: False Mwm*wMenuButtonClick: True !! if set to true, then double click on window menu kills window. Mwm*wMenuButtonClick2: True Mwm*Winterp*iconImage: /usr/include/X11/bitmaps/wingdogs Mwm*WinterpCtrlPnl*iconImage: /usr/local/include/X11/bitmaps/scrap-i.h Mwm*xterm*iconImage: /usr/local/include/X11/bitmaps/term.xbm Mwm*kermitxterm*iconImage: /usr/local/include/X11/bitmaps/phone Mwm*hpterm*iconImage: /usr/local/include/X11/bitmaps/term-i.h Mwm*Gnuvo*iconImage: /usr/local/include/X11/bitmaps/gnuvo-i.h Mwm*CFiles*iconImage: /usr/local/include/X11/bitmaps/gnuvo-c.xbm Mwm*MailFiles*iconImage: /usr/local/include/X11/bitmaps/gnuvo-draft.xbm Mwm*LispFiles*iconImage: /usr/local/include/X11/bitmaps/gnuvo-lsp.xbm Mwm*TextFiles*iconImage: /usr/local/include/X11/bitmaps/gnuvo-txt.xbm Mwm*TeXFiles*iconImage: /usr/local/include/X11/bitmaps/gnuvo-TeX.xbm Mwm*Gnuvominibuffer*iconImage: /usr/local/include/X11/bitmaps/gnuvo-i.h Mwm*Scratch*iconImage: /usr/local/include/X11/bitmaps/gnuvo-i.h Mwm*Aux*iconImage: /usr/local/include/X11/bitmaps/gnuvo-i.h Mwm*x11lock*iconImage: /usr/local/X11/x11lock/padlock.bm Mwm*x11emacs*iconImage: /usr/local/include/X11/bitmaps/gnuemacs-i.h Mwm*datebook*iconImage: /usr/local/include/X11/bitmaps/datebook-i.h Mwm*xclock*iconImage: /usr/local/include/X11/bitmaps/clock Mwm*xwebster*iconImage: /usr/local/include/X11/bitmaps/xwebster-i.h Mwm*clipboard*iconImage: /usr/local/include/X11/bitmaps/scrap-i.h Mwm*XMan*iconImage: /usr/local/include/X11/bitmaps/xman-i.h Mwm*Cscope*iconImage: /usr/local/include/X11/bitmaps/cscope-i.h Mwm*xhexcalc*iconImage: /usr/local/include/X11/bitmaps/calc-i.h Mwm*saveUnder: True Mwm*interactivePlacement: True Mwm*keyboardFocusPolicy: Pointer Mwm*colormapFocusPolicy: Pointer Mwm*limitResize: False Mwm*focusAutoRaise: False Mwm*positionOnScreen: False Mwm*resizeCursors: True Mwm*resizeBorderWidth: 5 Mwm*matteWidth: 0 Mwm*menu*bottomTitleSeparator*separatorType: single_line Mwm*feedback*confirmbox*highlightColor: Red Mwm*XClock*clientDecoration: none Mwm*oclock*clientDecoration: none Mwm*xperfmon*clientDecoration: none Mwm*moniterm*clientDecoration: none Mwm*Gnuvominibuffer*clientDecoration: border Mwm*console*clientDecoration: none Mwm*xckmail*clientDecoration: none Mwm*cutdisp*clientDecoration: none Mwm*client*fontList: hp8.8x16b Mwm*menu*fontList: 6x10 Mwm*icon*fontList: 6x10 Mwm*feedback*fontList: fg-40 # Mwm*makeColors: none !Mwm*foreground: White !Mwm*background: BlueViolet # Mwm*topShadowColor: LightBlue # Mwm*topShadowTile: foreground # Mwm*bottomShadowColor: Black # Mwm*bottomShadowTile: foreground !Mwm*icon*topShadowColor: LightBlue !Mwm*icon*bottomShadowColor: Black Mwm*client*foreground: White Mwm*client*background: BlueViolet !Mwm*client*topShadowColor: LightBlue !Mwm*client*bottomShadowColor: DimGrey # Mwm*client*activeTopShadowColor: White # Mwm*client*activeBottomShadowColor: Black # Mwm*client*topShadowTile: foreground # Mwm*client*bottomShadowTile: foreground # Mwm*client*activeTopShadowTile: foreground # Mwm*client*activeBottomShadowTile: foreground # Mwm*makeActiveColors: none !Mwm*activeForeground: Yellow Mwm*activeForeground: DarkOrchid !Mwm*activeBackground: DarkOrchid Mwm*activeBackground: Pink Mwm*activeTopShadowColor: Wheat Mwm*activeBottomShadowColor: DimGrey # Mwm*makeIconColors: none !Mwm*iconImageForeground: White !Mwm*iconImageBackground: DarkOrchid Mwm*iconImageForeground: White Mwm*iconImageBackground: MidnightBlue # Mwm*iconImageTopShadowColor: Black # Mwm*iconImageTopShadowTile: foreground # Mwm*iconImageBottomShadowColor: LightBlue # Mwm*iconImageBottomShadowTile: foreground # Mwm*makeMatteColors: none # Mwm*matteBackground: DarkSlateGrey # Mwm*matteForeground: Yellow Mwm*menu*background: MidnightBlue Mwm*menu*foreground: White !Mwm*menu*activeBackground: Blue !Mwm*menu*activeForeground: Wheat ------------------------------------------------------------------------------- Niels Mayer -- hplabs!mayer -- mayer@hplabs.hp.com Human-Computer Interaction Department Hewlett-Packard Laboratories Palo Alto, CA. *