/X11/app-defaults/UXTerm-color

http://github.com/brinkman83/bashrc · #! · 175 lines · 155 code · 20 blank · 0 comment · 0 complexity · 446ecb44b3bec790d5c7ac8582ef6ca5 MD5 · raw file

  1. ! $UXTermId: XTerm-col.ad,v 1.22 2009/08/15 15:56:29 tom Exp $
  2. ! -----------------------------------------------------------------------------
  3. ! this file is part of xterm
  4. !
  5. ! Copyright 2002-2006,2009 by Thomas E. Dickey
  6. !
  7. ! All Rights Reserved
  8. !
  9. ! Permission is hereby granted, free of charge, to any person obtaining a
  10. ! copy of this software and associated documentation files (the
  11. ! "Software"), to deal in the Software without restriction, including
  12. ! without limitation the rights to use, copy, modify, merge, publish,
  13. ! distribute, sublicense, and/or sell copies of the Software, and to
  14. ! permit persons to whom the Software is furnished to do so, subject to
  15. ! the following conditions:
  16. !
  17. ! The above copyright notice and this permission notice shall be included
  18. ! in all copies or substantial portions of the Software.
  19. !
  20. ! THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  21. ! OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  22. ! MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  23. ! IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
  24. ! CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  25. ! TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  26. ! SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  27. !
  28. ! Except as contained in this notice, the name(s) of the above copyright
  29. ! holders shall not be used in advertising or otherwise to promote the
  30. ! sale, use or other dealings in this Software without prior written
  31. ! authorization.
  32. ! -----------------------------------------------------------------------------
  33. #include "UXTerm"
  34. *VT100*colorMode: on
  35. *VT100*boldColors: on
  36. *VT100*dynamicColors: on
  37. ! Set the default text foreground and background colors.
  38. *VT100*foreground: gray90
  39. *VT100*background: black
  40. ! - OR -
  41. ! Uncomment this for black text on a "white" background.
  42. !*VT100*foreground: black
  43. !*VT100*background: gray90
  44. ! - OR -
  45. ! leave the foreground/background colors alone (at the mercy of your desktop
  46. ! designer).
  47. ! Color the popup/pulldown menu border to match the text widget foreground.
  48. !*SimpleMenu*borderColor: gray15
  49. ! Uncomment this to use color for underline attribute
  50. !*VT100*colorULMode: on
  51. *VT100*colorUL: yellow
  52. !*VT100*italicULMode: on
  53. ! Uncomment this to disable underlining, e.g., if colorULMode is set.
  54. !*VT100*underLine: off
  55. ! Uncomment this to use color for the bold attribute
  56. !*VT100*colorBDMode: on
  57. *VT100*colorBD: white
  58. ! Uncomment this to use the bold/underline colors in preference to other colors
  59. !*VT100*colorAttrMode: on
  60. ! These are the 8 ANSI colors and their bright equivalents. Depending on
  61. ! other resource settings, xterm may use the bright colors when displaying
  62. ! bold text (see the boldColors resource).
  63. *VT100*color0: black
  64. *VT100*color1: red3
  65. *VT100*color2: green3
  66. *VT100*color3: yellow3
  67. *VT100*color4: blue2
  68. *VT100*color5: magenta3
  69. *VT100*color6: cyan3
  70. *VT100*color7: gray90
  71. *VT100*color8: gray50
  72. *VT100*color9: red
  73. *VT100*color10: green
  74. *VT100*color11: yellow
  75. *VT100*color12: rgb:5c/5c/ff
  76. *VT100*color13: magenta
  77. *VT100*color14: cyan
  78. *VT100*color15: white
  79. ! Disclaimer: there are no standard colors used in terminal emulation.
  80. !
  81. ! The choice for color4 and color12 is a tradeoff between contrast, depending
  82. ! on whether they are used for text or backgrounds. Note that either color4 or
  83. ! color12 would be used for text, while only color4 would be used for a
  84. ! background. These are treated specially, since the luminosity of blue is
  85. ! only about half that of red/green, and is typically not accounted for in the
  86. ! RGB scheme.
  87. !
  88. ! Blue text on a black background should be readable.
  89. ! Blue backgrounds should not be "too" bright.
  90. !
  91. ! Originally color4/color12 were set to the names blue3/blue
  92. !*VT100*color4: blue3
  93. !*VT100*color12: blue
  94. !
  95. ! They are from rgb.txt respectively:
  96. ! 0 0 205 blue3
  97. ! 0 0 255 blue
  98. ! However, blue3 is not readable on a black background.
  99. !
  100. ! Another choice was from the Debian settings:
  101. !*VT100*color4: DodgerBlue1
  102. !*VT100*color12: SteelBlue1
  103. !
  104. ! From rgb.txt:
  105. ! 30 144 255 DodgerBlue1
  106. ! 99 184 255 SteelBlue1
  107. !
  108. ! Some users object to this choice because the background (color4) is brighter
  109. ! than they are accustomed. Others point out that the different weights for
  110. ! the red/green components make it appear to be not really blue. Finally, it
  111. ! provides poor contrast against color13 and color14.
  112. !
  113. ! The current choice uses equal weights for red/green (effectively adding a
  114. ! gray to the result). It is brighter than the original choice, and provides
  115. ! more contrast between color12 and color13, color14 than SteelBlue1 did.
  116. ! Contrast of color4 against black is slightly improved over the original.
  117. !
  118. ! Some refinement is certainly possible (you are welcome to try) -TD
  119. #if PLANES > 8
  120. ! Color the popup menus and the menubar to match:
  121. *SimpleMenu*background: AntiqueWhite
  122. *SimpleMenu*foreground: gray15
  123. ! Color the menubar to match:
  124. *Form.menubar.background: AntiqueWhite
  125. *Form.menubar*background: AntiqueWhite
  126. *Form.menubar.foreground: gray15
  127. *Form.menubar*foreground: gray15
  128. *Form.background: AntiqueWhite
  129. *form.background: AntiqueWhite
  130. *mainMenu*background: AntiqueWhite
  131. *mainMenu*foreground: gray15
  132. *vtMenu*background: AntiqueWhite
  133. *vtMenu*foreground: gray15
  134. *fontMenu*background: AntiqueWhite
  135. *fontMenu*foreground: gray15
  136. *tekMenu*background: AntiqueWhite
  137. *tekMenu*foreground: gray15
  138. ! The following two sections take advantage of new features in version 7
  139. ! of the Athena widget library; see Xaw(7x).
  140. ! This section is commented out because Xaw has no way to dynamically size
  141. ! the gradient. The dimension parameter may need to be adjusted depending
  142. ! on the font used in the menu.
  143. !*SimpleMenu*backgroundPixmap: gradient:vertical?dimension=350&start=gray90&end=gray60
  144. !*SimpleMenu*foreground: gray15
  145. *VT100.scrollbar.thumb: vlines2
  146. *VT100.scrollbar.width: 14
  147. *VT100.scrollbar.background: gray60
  148. *VT100.scrollbar.foreground: rgb:a/5/5
  149. *VT100.scrollbar.borderWidth: 0
  150. *VT100.scrollbar.displayList:\
  151. foreground gray90;\
  152. lines 1,-1,-1,-1,-1,1;\
  153. foreground gray60;\
  154. lines -1,0,0,0,0,-1
  155. #endif