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>
This commit is contained in:

committed by
Shawn O. Pearce

parent
cb8773d16c
commit
9adccb057e
18
git-gui.sh
18
git-gui.sh
@ -1731,7 +1731,7 @@ pack .vpane -anchor n -side top -fill both -expand 1
|
|||||||
#
|
#
|
||||||
frame .vpane.files.index -height 100 -width 200
|
frame .vpane.files.index -height 100 -width 200
|
||||||
label .vpane.files.index.title -text {Staged Changes (Will Be Committed)} \
|
label .vpane.files.index.title -text {Staged Changes (Will Be Committed)} \
|
||||||
-background green
|
-background lightgreen
|
||||||
text $ui_index -background white -borderwidth 0 \
|
text $ui_index -background white -borderwidth 0 \
|
||||||
-width 20 -height 10 \
|
-width 20 -height 10 \
|
||||||
-wrap none \
|
-wrap none \
|
||||||
@ -1751,7 +1751,7 @@ pack $ui_index -side left -fill both -expand 1
|
|||||||
#
|
#
|
||||||
frame .vpane.files.workdir -height 100 -width 200
|
frame .vpane.files.workdir -height 100 -width 200
|
||||||
label .vpane.files.workdir.title -text {Unstaged Changes (Will Not Be Committed)} \
|
label .vpane.files.workdir.title -text {Unstaged Changes (Will Not Be Committed)} \
|
||||||
-background red
|
-background lightsalmon
|
||||||
text $ui_workdir -background white -borderwidth 0 \
|
text $ui_workdir -background white -borderwidth 0 \
|
||||||
-width 20 -height 10 \
|
-width 20 -height 10 \
|
||||||
-wrap none \
|
-wrap none \
|
||||||
@ -1768,10 +1768,8 @@ pack $ui_workdir -side left -fill both -expand 1
|
|||||||
.vpane.files add .vpane.files.workdir -sticky nsew
|
.vpane.files add .vpane.files.workdir -sticky nsew
|
||||||
|
|
||||||
foreach i [list $ui_index $ui_workdir] {
|
foreach i [list $ui_index $ui_workdir] {
|
||||||
$i tag conf in_diff -font font_uibold
|
$i tag conf in_diff -background lightgray
|
||||||
$i tag conf in_sel \
|
$i tag conf in_sel -background lightgray
|
||||||
-background [$i cget -foreground] \
|
|
||||||
-foreground [$i cget -background]
|
|
||||||
}
|
}
|
||||||
unset i
|
unset i
|
||||||
|
|
||||||
@ -1929,18 +1927,18 @@ proc trace_current_diff_path {varname args} {
|
|||||||
}
|
}
|
||||||
trace add variable current_diff_path write trace_current_diff_path
|
trace add variable current_diff_path write trace_current_diff_path
|
||||||
|
|
||||||
frame .vpane.lower.diff.header -background orange
|
frame .vpane.lower.diff.header -background gold
|
||||||
label .vpane.lower.diff.header.status \
|
label .vpane.lower.diff.header.status \
|
||||||
-background orange \
|
-background gold \
|
||||||
-width $max_status_desc \
|
-width $max_status_desc \
|
||||||
-anchor w \
|
-anchor w \
|
||||||
-justify left
|
-justify left
|
||||||
label .vpane.lower.diff.header.file \
|
label .vpane.lower.diff.header.file \
|
||||||
-background orange \
|
-background gold \
|
||||||
-anchor w \
|
-anchor w \
|
||||||
-justify left
|
-justify left
|
||||||
label .vpane.lower.diff.header.path \
|
label .vpane.lower.diff.header.path \
|
||||||
-background orange \
|
-background gold \
|
||||||
-anchor w \
|
-anchor w \
|
||||||
-justify left
|
-justify left
|
||||||
pack .vpane.lower.diff.header.status -side left
|
pack .vpane.lower.diff.header.status -side left
|
||||||
|
Reference in New Issue
Block a user