Skip to content

Commit cae4b60

Browse files
Oblomovpaulusmack
authored andcommitted
gitk: Let .bleft.mid widgets 'breathe'
The widgets on top of the diff window are very tightly packed. Make them breathe a little by adding an 'i'-spaced padding between them. Signed-off-by: Giuseppe Bilotta <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent 6cb73c8 commit cae4b60

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

gitk

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2361,6 +2361,9 @@ proc makewindow {} {
23612361
${NS}::frame .bleft.mid
23622362
${NS}::frame .bleft.bottom
23632363

2364+
# gap between sub-widgets
2365+
set wgap [font measure uifont "i"]
2366+
23642367
${NS}::button .bleft.top.search -text [mc "Search"] -command dosearch
23652368
pack .bleft.top.search -side left -padx 5
23662369
set sstring .bleft.top.sstring
@@ -2375,16 +2378,17 @@ proc makewindow {} {
23752378
-command changediffdisp -variable diffelide -value {0 1}
23762379
${NS}::radiobutton .bleft.mid.new -text [mc "New version"] \
23772380
-command changediffdisp -variable diffelide -value {1 0}
2381+
23782382
${NS}::label .bleft.mid.labeldiffcontext -text " [mc "Lines of context"]: "
2379-
pack .bleft.mid.diff .bleft.mid.old .bleft.mid.new -side left
2383+
pack .bleft.mid.diff .bleft.mid.old .bleft.mid.new -side left -ipadx $wgap
23802384
spinbox .bleft.mid.diffcontext -width 5 \
23812385
-from 0 -increment 1 -to 10000000 \
23822386
-validate all -validatecommand "diffcontextvalidate %P" \
23832387
-textvariable diffcontextstring
23842388
.bleft.mid.diffcontext set $diffcontext
23852389
trace add variable diffcontextstring write diffcontextchange
23862390
lappend entries .bleft.mid.diffcontext
2387-
pack .bleft.mid.labeldiffcontext .bleft.mid.diffcontext -side left
2391+
pack .bleft.mid.labeldiffcontext .bleft.mid.diffcontext -side left -ipadx $wgap
23882392
${NS}::checkbutton .bleft.mid.ignspace -text [mc "Ignore space change"] \
23892393
-command changeignorespace -variable ignorespace
23902394
pack .bleft.mid.ignspace -side left -padx 5

0 commit comments

Comments
 (0)