@@ -720,7 +720,9 @@ proc rmsel_tag {text} {
720720 -background [ $text cget -background] \
721721 -foreground [ $text cget -foreground] \
722722 -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
724726 bind $text <Motion> break
725727 return $text
726728}
@@ -863,6 +865,7 @@ proc apply_config {} {
863865 set NS ttk
864866 bind [ winfo class .] <<ThemeChanged>> [ list InitTheme]
865867 pave_toplevel .
868+ color::sync_with_theme
866869 }
867870 }
868871}
@@ -3272,7 +3275,7 @@ pack .vpane -anchor n -side top -fill both -expand 1
32723275textframe .vpane.files.workdir -height 100 -width 200
32733276tlabel .vpane.files.workdir.title -text [ mc " Unstaged Changes" ] \
32743277 -background lightsalmon -foreground black
3275- ttext $ui_workdir -background white -foreground black \
3278+ ttext $ui_workdir \
32763279 -borderwidth 0 \
32773280 -width 20 -height 10 \
32783281 -wrap none \
@@ -3294,7 +3297,7 @@ textframe .vpane.files.index -height 100 -width 200
32943297tlabel .vpane.files.index.title \
32953298 -text [ mc " Staged Changes (Will Commit)" ] \
32963299 -background lightgreen -foreground black
3297- ttext $ui_index -background white -foreground black \
3300+ ttext $ui_index \
32983301 -borderwidth 0 \
32993302 -width 20 -height 10 \
33003303 -wrap none \
@@ -3321,7 +3324,9 @@ if {!$use_ttk} {
33213324
33223325foreach i [ list $ui_index $ui_workdir ] {
33233326 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
33253330}
33263331unset i
33273332
@@ -3429,7 +3434,7 @@ if {![is_enabled nocommit]} {
34293434}
34303435
34313436textframe .vpane.lower.commarea.buffer.frame
3432- ttext $ui_comm -background white -foreground black \
3437+ ttext $ui_comm \
34333438 -borderwidth 1 \
34343439 -undo true \
34353440 -maxundo 20 \
@@ -3558,7 +3563,7 @@ bind .vpane.lower.diff.header.path <Button-1> {do_file_open $current_diff_path}
35583563#
35593564textframe .vpane.lower.diff.body
35603565set ui_diff .vpane.lower.diff.body.t
3561- ttext $ui_diff -background white -foreground black \
3566+ ttext $ui_diff \
35623567 -borderwidth 0 \
35633568 -width 80 -height 5 -wrap none \
35643569 -font font_diff \
0 commit comments