From the session's palette and font, with Motif's own colour calculation: X resources (and the 16 terminal colours), GTK 1, GTK 2/3/4 themes with Motif's bevels and no animation, qt5ct/qt6ct schemes and kdeglobals. It is also the XSETTINGS manager, so running GTK programs change with the palette at once; System Settings runs it when a palette or font is chosen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
52 lines
2.3 KiB
Plaintext
52 lines
2.3 KiB
Plaintext
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).
|