@@ -720,7 +720,9 @@ proc rmsel_tag {text} {
720
720
-background [ $text cget -background] \
721
721
-foreground [ $text cget -foreground] \
722
722
-borderwidth 0
723
- $text tag conf in_sel -background lightgray
723
+ $text tag conf in_sel\
724
+ -background $color::select_bg \
725
+ -foreground $color::select_fg
724
726
bind $text <Motion> break
725
727
return $text
726
728
}
@@ -863,6 +865,7 @@ proc apply_config {} {
863
865
set NS ttk
864
866
bind [ winfo class .] <<ThemeChanged>> [ list InitTheme]
865
867
pave_toplevel .
868
+ color::sync_with_theme
866
869
}
867
870
}
868
871
}
@@ -3272,7 +3275,7 @@ pack .vpane -anchor n -side top -fill both -expand 1
3272
3275
textframe .vpane.files.workdir -height 100 -width 200
3273
3276
tlabel .vpane.files.workdir.title -text [ mc " Unstaged Changes" ] \
3274
3277
-background lightsalmon -foreground black
3275
- ttext $ui_workdir -background white -foreground black \
3278
+ ttext $ui_workdir \
3276
3279
-borderwidth 0 \
3277
3280
-width 20 -height 10 \
3278
3281
-wrap none \
@@ -3294,7 +3297,7 @@ textframe .vpane.files.index -height 100 -width 200
3294
3297
tlabel .vpane.files.index.title \
3295
3298
-text [ mc " Staged Changes (Will Commit)" ] \
3296
3299
-background lightgreen -foreground black
3297
- ttext $ui_index -background white -foreground black \
3300
+ ttext $ui_index \
3298
3301
-borderwidth 0 \
3299
3302
-width 20 -height 10 \
3300
3303
-wrap none \
@@ -3321,7 +3324,9 @@ if {!$use_ttk} {
3321
3324
3322
3325
foreach i [ list $ui_index $ui_workdir ] {
3323
3326
rmsel_tag $i
3324
- $i tag conf in_diff -background [ $i tag cget in_sel -background]
3327
+ $i tag conf in_diff \
3328
+ -background $color::select_bg \
3329
+ -foreground $color::select_fg
3325
3330
}
3326
3331
unset i
3327
3332
@@ -3429,7 +3434,7 @@ if {![is_enabled nocommit]} {
3429
3434
}
3430
3435
3431
3436
textframe .vpane.lower.commarea.buffer.frame
3432
- ttext $ui_comm -background white -foreground black \
3437
+ ttext $ui_comm \
3433
3438
-borderwidth 1 \
3434
3439
-undo true \
3435
3440
-maxundo 20 \
@@ -3558,7 +3563,7 @@ bind .vpane.lower.diff.header.path <Button-1> {do_file_open $current_diff_path}
3558
3563
#
3559
3564
textframe .vpane.lower.diff.body
3560
3565
set ui_diff .vpane.lower.diff.body.t
3561
- ttext $ui_diff -background white -foreground black \
3566
+ ttext $ui_diff \
3562
3567
-borderwidth 0 \
3563
3568
-width 80 -height 5 -wrap none \
3564
3569
-font font_diff \
0 commit comments