From: Achim Bohnet <ach () rosat ! mpe-garching ! mpg ! de>
To: tru64-unix-managers
Subject: How do the CDE Motif applications share their Color?
Date: Thu, 23 Jan 1997 21:08:31 +0000 [thread overview]
Message-ID: <96076450423388.tru64-unix-managers.marc@archive.invalid> (raw)
As all users with 256 color displays know free color cells are a
rare resource. So I've undertaken the up to now unsolvable task
to figure out how CDE/Motif applications do their color sharing
with the help of the CDE Style Manager.
I would like to be able to get tcl/tk, perl/tk and other widget
sets to use the same colors just like the Motif applications. But I was
not able to figure out where to lookup this information in the X
server.
I have already rough solutions for Tk based on (re)modeling motif color
schema based on the resources:
usePalette, useColors and the files in /usr/dt/palettes/
and setting the corresponding resources of the widget set.
But it complicated, errorprone, not complete and dissatisfying.
So, anybody aware of the method to ask the *X server*:
What color cell has the CDE Style Manager already allocated
for me to use it as
background, foreground, top-, bottomShadowColor
and selectColor
for the active, inactive, text, primary and seconardy colorset
Any hint how the Motif library manages this is very very much
appreciated.
Achim
P.S. I have already RTFM: Chapter 15 of the CDE Advanced User's and
System Administrator's Guide. Realy useful but the solution
is not there :-(
reply other threads:[~1997-01-23 21:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox