@@ -3194,13 +3194,34 @@ if {$use_ttk} {
3194
3194
}
3195
3195
pack .vpane -anchor n -side top -fill both -expand 1
3196
3196
3197
+ # -- Working Directory File List
3198
+
3199
+ textframe .vpane.files.workdir -height 100 -width 200
3200
+ tlabel .vpane.files.workdir.title -text [ mc " Unstaged Changes" ] \
3201
+ -background lightsalmon -foreground black
3202
+ ttext $ui_workdir -background white -foreground black \
3203
+ -borderwidth 0 \
3204
+ -width 20 -height 10 \
3205
+ -wrap none \
3206
+ -takefocus 1 -highlightthickness 1\
3207
+ -cursor $cursor_ptr \
3208
+ -xscrollcommand {.vpane.files.workdir.sx set} \
3209
+ -yscrollcommand {.vpane.files.workdir.sy set} \
3210
+ -state disabled
3211
+ ${NS} ::scrollbar .vpane.files.workdir.sx -orient h -command [ list $ui_workdir xview]
3212
+ ${NS} ::scrollbar .vpane.files.workdir.sy -orient v -command [ list $ui_workdir yview]
3213
+ pack .vpane.files.workdir.title -side top -fill x
3214
+ pack .vpane.files.workdir.sx -side bottom -fill x
3215
+ pack .vpane.files.workdir.sy -side right -fill y
3216
+ pack $ui_workdir -side left -fill both -expand 1
3217
+
3197
3218
# -- Index File List
3198
3219
#
3199
- ${NS} ::frame .vpane.files.index -height 100 -width 200
3220
+ textframe .vpane.files.index -height 100 -width 200
3200
3221
tlabel .vpane.files.index.title \
3201
3222
-text [ mc " Staged Changes (Will Commit)" ] \
3202
3223
-background lightgreen -foreground black
3203
- text $ui_index -background white -foreground black \
3224
+ ttext $ui_index -background white -foreground black \
3204
3225
-borderwidth 0 \
3205
3226
-width 20 -height 10 \
3206
3227
-wrap none \
@@ -3216,27 +3237,8 @@ pack .vpane.files.index.sx -side bottom -fill x
3216
3237
pack .vpane.files.index.sy -side right -fill y
3217
3238
pack $ui_index -side left -fill both -expand 1
3218
3239
3219
- # -- Working Directory File List
3240
+ # -- Insert the workdir and index into the panes
3220
3241
#
3221
- ${NS} ::frame .vpane.files.workdir -height 100 -width 200
3222
- tlabel .vpane.files.workdir.title -text [ mc " Unstaged Changes" ] \
3223
- -background lightsalmon -foreground black
3224
- text $ui_workdir -background white -foreground black \
3225
- -borderwidth 0 \
3226
- -width 20 -height 10 \
3227
- -wrap none \
3228
- -takefocus 1 -highlightthickness 1\
3229
- -cursor $cursor_ptr \
3230
- -xscrollcommand {.vpane.files.workdir.sx set} \
3231
- -yscrollcommand {.vpane.files.workdir.sy set} \
3232
- -state disabled
3233
- ${NS} ::scrollbar .vpane.files.workdir.sx -orient h -command [ list $ui_workdir xview]
3234
- ${NS} ::scrollbar .vpane.files.workdir.sy -orient v -command [ list $ui_workdir yview]
3235
- pack .vpane.files.workdir.title -side top -fill x
3236
- pack .vpane.files.workdir.sx -side bottom -fill x
3237
- pack .vpane.files.workdir.sy -side right -fill y
3238
- pack $ui_workdir -side left -fill both -expand 1
3239
-
3240
3242
.vpane.files add .vpane.files.workdir
3241
3243
.vpane.files add .vpane.files.index
3242
3244
if {!$use_ttk } {
@@ -3319,7 +3321,7 @@ if {![is_enabled nocommit]} {
3319
3321
#
3320
3322
${NS} ::frame .vpane.lower.commarea.buffer
3321
3323
${NS} ::frame .vpane.lower.commarea.buffer.header
3322
- set ui_comm .vpane.lower.commarea.buffer.t
3324
+ set ui_comm .vpane.lower.commarea.buffer.frame. t
3323
3325
set ui_coml .vpane.lower.commarea.buffer.header.l
3324
3326
3325
3327
if {![ is_enabled nocommit] } {
@@ -3362,20 +3364,25 @@ if {![is_enabled nocommit]} {
3362
3364
pack .vpane.lower.commarea.buffer.header.new -side right
3363
3365
}
3364
3366
3365
- text $ui_comm -background white -foreground black \
3367
+ textframe .vpane.lower.commarea.buffer.frame
3368
+ ttext $ui_comm -background white -foreground black \
3366
3369
-borderwidth 1 \
3367
3370
-undo true \
3368
3371
-maxundo 20 \
3369
3372
-autoseparators true \
3373
+ -takefocus 1 \
3374
+ -highlightthickness 1 \
3370
3375
-relief sunken \
3371
3376
-width $repo_config(gui.commitmsgwidth) -height 9 -wrap none \
3372
3377
-font font_diff \
3373
- -yscrollcommand {.vpane.lower.commarea.buffer.sby set}
3374
- ${NS} ::scrollbar .vpane.lower.commarea.buffer.sby \
3378
+ -yscrollcommand {.vpane.lower.commarea.buffer.frame. sby set}
3379
+ ${NS} ::scrollbar .vpane.lower.commarea.buffer.frame. sby \
3375
3380
-command [ list $ui_comm yview]
3376
- pack .vpane.lower.commarea.buffer.header -side top -fill x
3377
- pack .vpane.lower.commarea.buffer.sby -side right -fill y
3381
+
3382
+ pack .vpane.lower.commarea.buffer.frame. sby -side right -fill y
3378
3383
pack $ui_comm -side left -fill y
3384
+ pack .vpane.lower.commarea.buffer.header -side top -fill x
3385
+ pack .vpane.lower.commarea.buffer.frame -side left -fill y
3379
3386
pack .vpane.lower.commarea.buffer -side left -fill y
3380
3387
3381
3388
# -- Commit Message Buffer Context Menu
@@ -3473,12 +3480,13 @@ bind_button3 .vpane.lower.diff.header.path "tk_popup $ctxm %X %Y"
3473
3480
3474
3481
# -- Diff Body
3475
3482
#
3476
- ${NS} ::frame .vpane.lower.diff.body
3483
+ textframe .vpane.lower.diff.body
3477
3484
set ui_diff .vpane.lower.diff.body.t
3478
- text $ui_diff -background white -foreground black \
3485
+ ttext $ui_diff -background white -foreground black \
3479
3486
-borderwidth 0 \
3480
3487
-width 80 -height 5 -wrap none \
3481
3488
-font font_diff \
3489
+ -takefocus 1 -highlightthickness 1 \
3482
3490
-xscrollcommand {.vpane.lower.diff.body.sbx set} \
3483
3491
-yscrollcommand {.vpane.lower.diff.body.sby set} \
3484
3492
-state disabled
0 commit comments