@@ -648,8 +648,10 @@ proc makewindow {} {
648
648
frame .bright.mode
649
649
radiobutton .bright.mode.patch -text " Patch" \
650
650
-command reselectline -variable cmitmode -value " patch"
651
+ .bright.mode.patch configure -font $uifont
651
652
radiobutton .bright.mode.tree -text " Tree" \
652
653
-command reselectline -variable cmitmode -value " tree"
654
+ .bright.mode.tree configure -font $uifont
653
655
grid .bright.mode.patch .bright.mode.tree -sticky ew
654
656
pack .bright.mode -side top -fill x
655
657
set cflist .bright.cfiles
@@ -922,6 +924,7 @@ proc bindall {event action} {
922
924
}
923
925
924
926
proc about {} {
927
+ global uifont
925
928
set w .about
926
929
if {[winfo exists $w ]} {
927
930
raise $w
@@ -937,11 +940,14 @@ Copyright
937
940
Use and redistribute under the terms of the GNU General Public License} \
938
941
-justify center -aspect 400
939
942
pack $w .m -side top -fill x -padx 20 -pady 20
943
+ $w .m configure -font $uifont
940
944
button $w .ok -text Close -command " destroy $w "
941
945
pack $w .ok -side bottom
946
+ $w .ok configure -font $uifont
942
947
}
943
948
944
949
proc keys {} {
950
+ global uifont
945
951
set w .keys
946
952
if {[winfo exists $w ]} {
947
953
raise $w
@@ -990,8 +996,10 @@ f Scroll diff view to next file
990
996
} \
991
997
-justify left -bg white -border 2 -relief sunken
992
998
pack $w .m -side top -fill both
999
+ $w .m configure -font $uifont
993
1000
button $w .ok -text Close -command " destroy $w "
994
1001
pack $w .ok -side bottom
1002
+ $w .ok configure -font $uifont
995
1003
}
996
1004
997
1005
# Procedures for manipulating the file list window at the
@@ -1457,20 +1465,21 @@ proc vieweditor {top n title} {
1457
1465
toplevel $top
1458
1466
wm title $top $title
1459
1467
label $top .nl -text " Name" -font $uifont
1460
- entry $top .name -width 20 -textvariable newviewname($n )
1468
+ entry $top .name -width 20 -textvariable newviewname($n ) -font $uifont
1461
1469
grid $top .nl $top .name -sticky w -pady 5
1462
- checkbutton $top .perm -text " Remember this view" -variable newviewperm($n )
1470
+ checkbutton $top .perm -text " Remember this view" -variable newviewperm($n ) \
1471
+ -font $uifont
1463
1472
grid $top .perm - -pady 5 -sticky w
1464
1473
message $top .al -aspect 1000 -font $uifont \
1465
1474
-text " Commits to include (arguments to git rev-list):"
1466
1475
grid $top .al - -sticky w -pady 5
1467
1476
entry $top .args -width 50 -textvariable newviewargs($n ) \
1468
- -background white
1477
+ -background white -font $uifont
1469
1478
grid $top .args - -sticky ew -padx 5
1470
1479
message $top .l -aspect 1000 -font $uifont \
1471
1480
-text " Enter files and directories to include, one per line:"
1472
1481
grid $top .l - -sticky w
1473
- text $top .t -width 40 -height 10 -background white
1482
+ text $top .t -width 40 -height 10 -background white -font $uifont
1474
1483
if {[info exists viewfiles($n )]} {
1475
1484
foreach f $viewfiles($n) {
1476
1485
$top .t insert end $f
@@ -1481,8 +1490,10 @@ proc vieweditor {top n title} {
1481
1490
}
1482
1491
grid $top .t - -sticky ew -padx 5
1483
1492
frame $top .buts
1484
- button $top .buts.ok -text " OK" -command [list newviewok $top $n ]
1485
- button $top .buts.can -text " Cancel" -command [list destroy $top ]
1493
+ button $top .buts.ok -text " OK" -command [list newviewok $top $n ] \
1494
+ -font $uifont
1495
+ button $top .buts.can -text " Cancel" -command [list destroy $top ] \
1496
+ -font $uifont
1486
1497
grid $top .buts.ok $top .buts.can
1487
1498
grid columnconfigure $top .buts 0 -weight 1 -uniform a
1488
1499
grid columnconfigure $top .buts 1 -weight 1 -uniform a
@@ -5813,6 +5824,7 @@ proc doprefs {} {
5813
5824
global maxwidth maxgraphpct diffopts
5814
5825
global oldprefs prefstop showneartags
5815
5826
global bgcolor fgcolor ctext diffcolors
5827
+ global uifont
5816
5828
5817
5829
set top .gitkprefs
5818
5830
set prefstop $top
@@ -5826,6 +5838,7 @@ proc doprefs {} {
5826
5838
toplevel $top
5827
5839
wm title $top " Gitk preferences"
5828
5840
label $top .ldisp -text " Commit list display options"
5841
+ $top .ldisp configure -font $uifont
5829
5842
grid $top .ldisp - -sticky w -pady 10
5830
5843
label $top .spacer -text " "
5831
5844
label $top .maxwidthl -text " Maximum graph width (lines)" \
@@ -5838,6 +5851,7 @@ proc doprefs {} {
5838
5851
grid x $top .maxpctl $top .maxpct -sticky w
5839
5852
5840
5853
label $top .ddisp -text " Diff display options"
5854
+ $top .ddisp configure -font $uifont
5841
5855
grid $top .ddisp - -sticky w -pady 10
5842
5856
label $top .diffoptl -text " Options for diff program" \
5843
5857
-font optionfont
@@ -5850,6 +5864,7 @@ proc doprefs {} {
5850
5864
grid x $top .ntag -sticky w
5851
5865
5852
5866
label $top .cdisp -text " Colors: press to choose"
5867
+ $top .cdisp configure -font $uifont
5853
5868
grid $top .cdisp - -sticky w -pady 10
5854
5869
label $top .bg -padx 40 -relief sunk -background $bgcolor
5855
5870
button $top .bgbut -text " Background" -font optionfont \
@@ -5878,7 +5893,9 @@ proc doprefs {} {
5878
5893
5879
5894
frame $top .buts
5880
5895
button $top .buts.ok -text " OK" -command prefsok
5896
+ $top .buts.ok configure -font $uifont
5881
5897
button $top .buts.can -text " Cancel" -command prefscan
5898
+ $top .buts.can configure -font $uifont
5882
5899
grid $top .buts.ok $top .buts.can
5883
5900
grid columnconfigure $top .buts 0 -weight 1 -uniform a
5884
5901
grid columnconfigure $top .buts 1 -weight 1 -uniform a
0 commit comments