CDE colour sets -- what each of a palette's eight colours is for Read 2026-11-11 for dtthemesync (MCDE: one look for every toolkit). Source: ext/src/mcde/doc/en_US.UTF-8/guides/sysAdminGuide/ch15.sgm (CDE 2.5.3 System Administration Guide, "How Color Sets are Mapped to Resources", "Default Color Set Assignments"), and the defaults in ext/src/mcde/motif/lib/Xm/ColorObj.c:100-165 (primary 5, secondary 6, text 4, active 1, inactive 2). How Color Sets are Mapped to Resourcescolor setsmapping to display elements The desktop maps color sets to various display elements through resources, and makes the following assignments: Resource Display element activeColorSetIdactiveColorSetId resource Active window frame colorcolorsactive window frame inactiveColorSetIdinactiveFrameColorId resource Inactive window frame colorcolorsinactive window frame textColorSetIdtextColorSetId resource Text entry areascolorstext entry areas primaryColorSetIdprimaryColorSetId resource Application's main background areascolorsapplication windows secondaryColorSetIdsecondaryColorSetId resource 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 Default Color Set Assignmentscolor setsdefaultcolorsdefault The color set IDs used for display elements depends on the Number of Colors setting in Style Manager: High color (8 color sets)—Style Manager setting More Colors for Desktop: Color set ID Display element 1 Active window frame color 2 Inactive window frame color 3 Unused (by default) 4 Text entry areas 5 Application's main background areas 6 Application's menu bar, menus, and dialog boxes 7 Unused by default 8 Front Panel background How the colours of a set are made (programs/dtsession/SrvFile_io.c, ParsePaletteInfo): the palette file (*.dp) holds one background per line; foreground, select colour, top and bottom shadow come from XmCalculateColorRGB (Motif's XmGetColorCalculation).