Skip to content

Commit 9adccb0

Browse files
Matthijs9030spearce
authored andcommitted
New selection indication and softer colors
The default font was already bold, so marking the selected file with bold font did not work. Change that to lightgray background. Also, the header colors are now softer, giving better readability. Signed-off-by: Matthijs Melchior <[email protected]> Signed-off-by: Shawn O. Pearce <[email protected]>
1 parent cb8773d commit 9adccb0

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

git-gui.sh

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,7 @@ pack .vpane -anchor n -side top -fill both -expand 1
17311731
#
17321732
frame .vpane.files.index -height 100 -width 200
17331733
label .vpane.files.index.title -text {Staged Changes (Will Be Committed)} \
1734-
-background green
1734+
-background lightgreen
17351735
text $ui_index -background white -borderwidth 0 \
17361736
-width 20 -height 10 \
17371737
-wrap none \
@@ -1751,7 +1751,7 @@ pack $ui_index -side left -fill both -expand 1
17511751
#
17521752
frame .vpane.files.workdir -height 100 -width 200
17531753
label .vpane.files.workdir.title -text {Unstaged Changes (Will Not Be Committed)} \
1754-
-background red
1754+
-background lightsalmon
17551755
text $ui_workdir -background white -borderwidth 0 \
17561756
-width 20 -height 10 \
17571757
-wrap none \
@@ -1768,10 +1768,8 @@ pack $ui_workdir -side left -fill both -expand 1
17681768
.vpane.files add .vpane.files.workdir -sticky nsew
17691769

17701770
foreach i [list $ui_index $ui_workdir] {
1771-
$i tag conf in_diff -font font_uibold
1772-
$i tag conf in_sel \
1773-
-background [$i cget -foreground] \
1774-
-foreground [$i cget -background]
1771+
$i tag conf in_diff -background lightgray
1772+
$i tag conf in_sel -background lightgray
17751773
}
17761774
unset i
17771775

@@ -1929,18 +1927,18 @@ proc trace_current_diff_path {varname args} {
19291927
}
19301928
trace add variable current_diff_path write trace_current_diff_path
19311929

1932-
frame .vpane.lower.diff.header -background orange
1930+
frame .vpane.lower.diff.header -background gold
19331931
label .vpane.lower.diff.header.status \
1934-
-background orange \
1932+
-background gold \
19351933
-width $max_status_desc \
19361934
-anchor w \
19371935
-justify left
19381936
label .vpane.lower.diff.header.file \
1939-
-background orange \
1937+
-background gold \
19401938
-anchor w \
19411939
-justify left
19421940
label .vpane.lower.diff.header.path \
1943-
-background orange \
1941+
-background gold \
19441942
-anchor w \
19451943
-justify left
19461944
pack .vpane.lower.diff.header.status -side left

0 commit comments

Comments
 (0)