Solaris Common Desktop Environment: Advanced User's and System Administrator's Guide

How Color Sets are Mapped to Resources

The desktop maps color sets to various display elements through resources and makes the assignments shown in Table 17-5.

Table 17-5 Mapped Color Sets to Resources

Resource 

Display element 

activeColorSetId

Active window frame color

inactiveColorSetId

Inactive window frame color

textColorSetId

Text entry areas

primaryColorSetId

Application's main background areas

secondaryColorSetId

Application's menu bar, menus, and dialog boxes 

These resources take a color set ID as their value. Coloring display elements with color set IDs allows the element to dynamically change to the new color scheme when a new palette is selected with Style Manager.

You can use these resources for individual applications. For example, the following line shows how you would visually group all dtterm windows by using color set 8 for their primary color.

dtterm*primaryColorSetId:   8