DefSchm.tcl 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. # -*- mode: TCL; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
  2. #
  3. # $Id: DefSchm.tcl,v 1.2 2001/12/09 05:04:02 idiscovery Exp $
  4. #
  5. # DefSchm.tcl --
  6. #
  7. # Implements the default color and font schemes for Tix.
  8. #
  9. # Copyright (c) 1993-1999 Ioi Kim Lam.
  10. # Copyright (c) 2000-2001 Tix Project Group.
  11. #
  12. # See the file "license.terms" for information on usage and redistribution
  13. # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  14. #
  15. proc tixSetDefaultFontset {} {
  16. global tixOption tcl_platform
  17. switch -- $tcl_platform(platform) "windows" {
  18. # This should be Tahoma for Win2000/XP
  19. set font "MS Sans Serif"
  20. set fixedfont "Courier New"
  21. set size 8
  22. } unix {
  23. set font "helvetica"
  24. set fixedfont "courier"
  25. set size -12
  26. }
  27. set tixOption(font) [list $font $size]
  28. set tixOption(bold_font) [list $font $size bold]
  29. set tixOption(menu_font) [list $font $size]
  30. set tixOption(italic_font) [list $font $size bold italic]
  31. set tixOption(fixed_font) [list $fixedfont $size]
  32. set tixOption(border1) 1
  33. }
  34. proc tixSetDefaultScheme-Color {} {
  35. global tixOption
  36. set tixOption(bg) #d9d9d9
  37. set tixOption(fg) black
  38. set tixOption(dark1_bg) #c3c3c3
  39. set tixOption(dark1_fg) black
  40. set tixOption(dark2_bg) #a3a3a3
  41. set tixOption(dark2_fg) black
  42. set tixOption(inactive_bg) #a3a3a3
  43. set tixOption(inactive_fg) black
  44. set tixOption(light1_bg) #ececec
  45. set tixOption(light1_fg) white
  46. set tixOption(light2_bg) #fcfcfc
  47. set tixOption(light2_fg) white
  48. set tixOption(active_bg) $tixOption(dark1_bg)
  49. set tixOption(active_fg) $tixOption(fg)
  50. set tixOption(disabled_fg) gray55
  51. set tixOption(input1_bg) #d9d9d9
  52. set tixOption(input2_bg) #d9d9d9
  53. set tixOption(output1_bg) $tixOption(dark1_bg)
  54. set tixOption(output2_bg) $tixOption(bg)
  55. set tixOption(select_fg) black
  56. set tixOption(select_bg) #c3c3c3
  57. set tixOption(selector) #b03060
  58. }
  59. proc tixSetDefaultScheme-Mono {} {
  60. global tixOption
  61. set tixOption(bg) lightgray
  62. set tixOption(fg) black
  63. set tixOption(dark1_bg) gray70
  64. set tixOption(dark1_fg) black
  65. set tixOption(dark2_bg) gray60
  66. set tixOption(dark2_fg) white
  67. set tixOption(inactive_bg) lightgray
  68. set tixOption(inactive_fg) black
  69. set tixOption(light1_bg) gray90
  70. set tixOption(light1_fg) white
  71. set tixOption(light2_bg) gray95
  72. set tixOption(light2_fg) white
  73. set tixOption(active_bg) gray90
  74. set tixOption(active_fg) $tixOption(fg)
  75. set tixOption(disabled_fg) gray55
  76. set tixOption(input1_bg) $tixOption(light1_bg)
  77. set tixOption(input2_bg) $tixOption(light1_bg)
  78. set tixOption(output1_bg) $tixOption(light1_bg)
  79. set tixOption(output2_bg) $tixOption(light1_bg)
  80. set tixOption(select_fg) white
  81. set tixOption(select_bg) black
  82. set tixOption(selector) black
  83. }