You can dynamically change color for desktop applications and other cooperating applications through Style Manager. The foreground and background colors set by Style Manager are available to non-cooperating applications.
For a client to respond to Style Manager color changes, the client must be using the desktop Motif library. Clients written with other toolkits cannot change color dynamically in response to Style Manager changes. Color changes for these clients do not take effect until the client is restarted.
There must be no other specific color resources applied for the client. This includes user-specified resources, appdefaults, and resources built into the application.
Clients can specify primaryColorSetId and secondaryColorSetId resources to use certain colors within a desktop palette.