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 <mmelchior@xs4all.nl> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Matthijs Melchior committed
Jun 5, 2007 at 23:50 UTC
9adccb057e2654f259bd98c04012e97a30322c1b
1 file changed
+8
-10
git-gui.sh
+8
-10
@@ -1731,7 +1731,7 @@ pack .vpane -anchor n -side top -fill both -expand 1
1731
#
1732
frame .vpane.files.index -height 100 -width 200
1733
label .vpane.files.index.title -text {Staged Changes (Will Be Committed)} \
1734
- -background green
1734
+ -background lightgreen
1735
text $ui_index -background white -borderwidth 0 \
1736
-width 20 -height 10 \
1737
-wrap none \
@@ -1751,7 +1751,7 @@ pack $ui_index -side left -fill both -expand 1
1751
#
1752
frame .vpane.files.workdir -height 100 -width 200
1753
label .vpane.files.workdir.title -text {Unstaged Changes (Will Not Be Committed)} \
1754
- -background red
1754
+ -background lightsalmon
1755
text $ui_workdir -background white -borderwidth 0 \
1756
-width 20 -height 10 \
1757
-wrap none \
@@ -1768,10 +1768,8 @@ pack $ui_workdir -side left -fill both -expand 1
1768
.vpane.files add .vpane.files.workdir -sticky nsew
1769
1770
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
1773
}
1774
unset i
1775
@@ -1929,18 +1927,18 @@ proc trace_current_diff_path {varname args} {
1927
}
1928
trace add variable current_diff_path write trace_current_diff_path
1929
1932
-frame .vpane.lower.diff.header -background orange
1930
+frame .vpane.lower.diff.header -background gold
1931
label .vpane.lower.diff.header.status \
1934
- -background orange \
1932
+ -background gold \
1933
-width $max_status_desc \
1934
-anchor w \
1935
-justify left
1936
label .vpane.lower.diff.header.file \
1939
- -background orange \
1937
+ -background gold \
1938
-anchor w \
1939
-justify left
1940
label .vpane.lower.diff.header.path \
1943
- -background orange \
1941
+ -background gold \
1942
-anchor w \
1943
-justify left
1944
pack .vpane.lower.diff.header.status -side left