WmDefault.fsc 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # -*-mode: tcl; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
  2. #
  3. # $Id: WmDefault.fsc,v 1.2 2001/12/09 05:03:09 idiscovery Exp $
  4. #
  5. #
  6. proc tixPref:InitFontSet:WmDefault {} {
  7. global tixOption
  8. package require wm_default
  9. if {1 || ![info exists ::wm_default::wm]} {
  10. wm_default::setup
  11. wm_default::addoptions
  12. }
  13. set tixOption(font) $::wm_default::system_font
  14. set tixOption(bold_font) [concat $::wm_default::system_font bold]
  15. set tixOption(menu_font) $::wm_default::menu_font
  16. set tixOption(italic_font) [concat $::wm_default::system_font italic]
  17. set tixOption(fixed_font) $::wm_default::fixed_font
  18. set tixOption(border1) $::wm_default::borderwidth
  19. }
  20. proc tixPref:SetFontSet:WmDefault {} {
  21. global tixOption
  22. package require wm_default
  23. if {1 || ![info exists ::wm_default::wm]} {
  24. wm_default::setup
  25. wm_default::addoptions
  26. }
  27. set pri $tixOption(prioLevel)
  28. set tixOption(font) $::wm_default::system_font
  29. set tixOption(bold_font) [concat $::wm_default::system_font bold]
  30. set tixOption(menu_font) $::wm_default::menu_font
  31. set tixOption(italic_font) [concat $::wm_default::system_font italic]
  32. set tixOption(fixed_font) $::wm_default::fixed_font
  33. set tixOption(text_font) $::wm_default::text_font
  34. set tixOption(border1) $::wm_default::borderwidth
  35. option add *TixBalloon*Label.font $tixOption(font) $pri
  36. option add *TixBitmapButton*label.font $tixOption(font) $pri
  37. option add *TixControl*label.font $tixOption(font) $pri
  38. option add *TixLabelEntry*label.font $tixOption(font) $pri
  39. option add *TixLabelFrame*label.font $tixOption(font) $pri
  40. option add *TixMenu.font $tixOption(menu_font) $pri
  41. option add *TixMwmClient*title.font $tixOption(font) $pri
  42. option add *TixNoteBook.nbframe.font $tixOption(font) $pri
  43. # Although its a menubutton, it's more like a button than a menu IMHO
  44. option add *TixOptionMenu*menubutton.font $tixOption(font) $pri
  45. option add *TixComboBox*Entry.font $tixOption(font) $pri
  46. option add *TixFileSelectBox*Label.font $tixOption(font) $pri
  47. }