XTerm-col.ad revision 956cc18d
1! $XTermId: XTerm-col.ad,v 1.21 2009/08/15 15:56:29 tom Exp $
2
3#include "XTerm"
4
5*VT100*colorMode: on
6*VT100*boldColors: on
7*VT100*dynamicColors: on
8
9! Uncomment this for "white" text on a dark background.
10!*VT100*foreground: gray90
11!*VT100*background: black
12
13! - OR -
14! Uncomment this for black text on a "white" background.
15!*VT100*foreground: black
16!*VT100*background: gray90
17
18! - OR -
19! leave the foreground/background colors alone (at the mercy of your desktop
20! designer).
21
22! Color the popup/pulldown menu border to match the text widget foreground.
23!*SimpleMenu*borderColor: gray15
24
25! Uncomment this to use color for underline attribute
26!*VT100*colorULMode: on
27*VT100*colorUL: yellow
28
29!*VT100*italicULMode: on
30
31! Uncomment this to disable underlining, e.g., if colorULMode is set.
32!*VT100*underLine: off
33
34! Uncomment this to use color for the bold attribute
35!*VT100*colorBDMode: on
36*VT100*colorBD: white
37
38! Uncomment this to use the bold/underline colors in preference to other colors
39!*VT100*colorAttrMode: on
40
41! These are the 8 ANSI colors and their bright equivalents.  Depending on
42! other resource settings, xterm may use the bright colors when displaying
43! bold text (see the boldColors resource).
44*VT100*color0: black
45*VT100*color1: red3
46*VT100*color2: green3
47*VT100*color3: yellow3
48*VT100*color4: blue2
49*VT100*color5: magenta3
50*VT100*color6: cyan3
51*VT100*color7: gray90
52*VT100*color8: gray50
53*VT100*color9: red
54*VT100*color10: green
55*VT100*color11: yellow
56*VT100*color12: rgb:5c/5c/ff
57*VT100*color13: magenta
58*VT100*color14: cyan
59*VT100*color15: white
60
61! Disclaimer: there are no standard colors used in terminal emulation.
62!
63! The choice for color4 and color12 is a tradeoff between contrast, depending
64! on whether they are used for text or backgrounds.  Note that either color4 or
65! color12 would be used for text, while only color4 would be used for a
66! background.  These are treated specially, since the luminosity of blue is
67! only about half that of red/green, and is typically not accounted for in the
68! RGB scheme.
69!
70! Blue text on a black background should be readable.
71! Blue backgrounds should not be "too" bright.
72!
73! Originally color4/color12 were set to the names blue3/blue
74!*VT100*color4: blue3
75!*VT100*color12: blue
76!
77! They are from rgb.txt respectively:
78!  0   0 205		blue3
79!  0   0 255		blue
80! However, blue3 is not readable on a black background.
81!
82! Another choice was from the Debian settings:
83!*VT100*color4: DodgerBlue1
84!*VT100*color12: SteelBlue1
85!
86! From rgb.txt:
87! 30 144 255		DodgerBlue1
88! 99 184 255		SteelBlue1
89!
90! Some users object to this choice because the background (color4) is brighter
91! than they are accustomed.  Others point out that the different weights for
92! the red/green components make it appear to be not really blue.  Finally, it
93! provides poor contrast against color13 and color14.
94!
95! The current choice uses equal weights for red/green (effectively adding a
96! gray to the result).  It is brighter than the original choice, and provides
97! more contrast between color12 and color13, color14 than SteelBlue1 did.
98! Contrast of color4 against black is slightly improved over the original.
99!
100! Some refinement is certainly possible (you are welcome to try) -TD
101
102
103#if PLANES > 8
104! Color the popup menus and the menubar to match:
105*SimpleMenu*background: AntiqueWhite
106*SimpleMenu*foreground: gray15
107
108! Color the menubar to match:
109*Form.menubar.background: AntiqueWhite
110*Form.menubar*background: AntiqueWhite
111*Form.menubar.foreground: gray15
112*Form.menubar*foreground: gray15
113*Form.background: AntiqueWhite
114*form.background: AntiqueWhite
115
116! The following two sections take advantage of new features in version 7
117! of the Athena widget library.  Comment them out if you have a shallow
118! color depth.
119!*SimpleMenu*backgroundPixmap:   gradient:vertical?dimension=350&start=gray90&end=gray60
120!*SimpleMenu*foreground:         gray15
121
122!*VT100.scrollbar.thumb:         vlines2
123!*VT100.scrollbar.width:         14
124!*VT100.scrollbar.background:    gray60
125!*VT100.scrollbar.foreground:    rgb:a/5/5
126!*VT100.scrollbar.borderWidth:   0
127!*VT100.scrollbar.displayList:\
128!foreground      gray90;\
129!lines           1,-1,-1,-1,-1,1;\
130!foreground      gray60;\
131!lines           -1,0,0,0,0,-1
132#endif
133