[PATCH] gitk: Make selection highlight color configurable
Cygwin's tk by default uses a very dark selection background color that
makes the currently selected text almost unreadable. On linux, the default
selection background is a light gray which is very usable. This makes the
default a light gray everywhere but allows the user to configure the
color as well.
Signed-off-by: Mark Levedahl <mdl123@verizon.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
maint
Mark Levedahl18 years agocommitted byPaul Mackerras
button $top.buts.ok -text "OK" -command prefsok -default active
@ -5936,6 +5945,16 @@ proc choosecolor {v vi w x cmd} {
@@ -5936,6 +5945,16 @@ proc choosecolor {v vi w x cmd} {
eval $cmd $c
}
proc setselbg {c} {
global bglist cflist
foreach w $bglist {
$w configure -selectbackground $c
}
$cflist tag configure highlight \
-background [$cflist cget -selectbackground]
allcanvs itemconf secsel -fill $c
}
proc setbg {c} {
global bglist
@ -6292,6 +6311,7 @@ set colors {green red blue magenta darkgrey brown orange}
@@ -6292,6 +6311,7 @@ set colors {green red blue magenta darkgrey brown orange}