From 28edb31439f680718bd678a85ee4e805aa33c0d1 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Tue, 26 Jun 2007 09:07:17 +0200 Subject: [PATCH] Revert "Better contrast of text and background of selected lines." This reverts commit 3724812944c65714216ecdb87835835cf12f8870. We have now a better solution by Mark Levedahl, where the highlight color can be configured. --- gitk | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gitk b/gitk index 1c9c9ccc78..513fc2b8c9 100755 --- a/gitk +++ b/gitk @@ -683,7 +683,7 @@ proc makewindow {} { pack .bright.sb -side right -fill y pack $cflist -side left -fill both -expand 1 $cflist tag configure highlight \ - -background [$cflist cget -highlightbackground] + -background [$cflist cget -selectbackground] $cflist tag configure bold -font [concat $mainfont bold] .pwbottom add .bright @@ -1790,7 +1790,7 @@ proc bolden {row font} { $canv delete secsel set t [eval $canv create rect [$canv bbox $linehtag($row)] \ -outline {{}} -tags secsel \ - -fill [$canv cget -highlightbackground]] + -fill [$canv cget -selectbackground]] $canv lower $t } } @@ -1804,7 +1804,7 @@ proc bolden_name {row font} { $canv2 delete secsel set t [eval $canv2 create rect [$canv2 bbox $linentag($row)] \ -outline {{}} -tags secsel \ - -fill [$canv2 cget -highlightbackground]] + -fill [$canv2 cget -selectbackground]] $canv2 lower $t } } @@ -3920,15 +3920,15 @@ proc selectline {l isnew} { if {![info exists linehtag($l)]} return $canv delete secsel set t [eval $canv create rect [$canv bbox $linehtag($l)] -outline {{}} \ - -tags secsel -fill [$canv cget -highlightbackground]] + -tags secsel -fill [$canv cget -selectbackground]] $canv lower $t $canv2 delete secsel set t [eval $canv2 create rect [$canv2 bbox $linentag($l)] -outline {{}} \ - -tags secsel -fill [$canv2 cget -highlightbackground]] + -tags secsel -fill [$canv2 cget -selectbackground]] $canv2 lower $t $canv3 delete secsel set t [eval $canv3 create rect [$canv3 bbox $linedtag($l)] -outline {{}} \ - -tags secsel -fill [$canv3 cget -highlightbackground]] + -tags secsel -fill [$canv3 cget -selectbackground]] $canv3 lower $t if {$isnew} {