Posted to tcl by emiliano at Wed May 24 14:10:07 GMT 2023view raw

  1. Index: apps/tkchat/tkchat_newroster.tcl
  2. ==================================================================
  3. --- apps/tkchat/tkchat_newroster.tcl
  4. +++ apps/tkchat/tkchat_newroster.tcl
  5. @@ -53,11 +53,13 @@
  6. $cl tag configure SUBTITLE \
  7. -font TkHeadingFont \
  8. -background gray85
  9.  
  10. set indent 0
  11. - set rowheight 22
  12. + # determine the row height
  13. + set height [expr { int( 1.2 * [font metrics TkDefaultFont -linespace]) }]
  14. + set rowheight [tk::ScaleNum $height]
  15. foreach theme [ttk::style theme names] {
  16. ttk::style theme settings $theme {
  17. ttk::style configure Roster.Treeview \
  18. -indent $indent \
  19. -rowheight $rowheight
  20.