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