WmDefault.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # -*-mode: tcl; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
  2. #
  3. # $Id: WmDefault.cs,v 1.2 2001/12/09 05:03:09 idiscovery Exp $
  4. #
  5. proc tixSetScheme-Color {} {
  6. global tixOption
  7. package require wm_default
  8. if {![info exists ::wm_default::wm]} {
  9. wm_default::setup
  10. wm_default::addoptions
  11. }
  12. set tixOption(bg) $::wm_default::background
  13. set tixOption(fg) $::wm_default::foreground
  14. set tixOption(dark1_bg) #808080
  15. set tixOption(inactive_bg) $::wm_default::disabledbackground
  16. set tixOption(inactive_fg) black; # unused
  17. # light1 was used for listbox widgets and trough colors
  18. set tixOption(light1_bg) $::wm_default::scrollbars
  19. set tixOption(light1_fg) white; # unused
  20. # text is now used for listbox widgets
  21. set tixOption(list_bg) $::wm_default::textbackground
  22. set tixOption(active_bg) $::wm_default::activebackground
  23. set tixOption(active_fg) $::wm_default::activeforeground
  24. set tixOption(disabled_fg) $::wm_default::disabledforeground
  25. # new
  26. set tixOption(disabled_bg) $::wm_default::disabledtextbackground
  27. set tixOption(input1_bg) $::wm_default::textbackground
  28. set tixOption(input1_fg) $::wm_default::textforeground
  29. set tixOption(select_fg) $::wm_default::selectforeground
  30. set tixOption(select_bg) $::wm_default::selectbackground
  31. set tixOption(selector) $::wm_default::selectcolor
  32. }