aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2025-05-22 19:15:31 +0200
committerJohannes Sixt <j6t@kdbg.org>2025-05-22 19:15:31 +0200
commitbfb0fa7099e541c15d103b75f453f613a751da03 (patch)
tree8875fc460bc267d55257a8821a2b895dbac05e92
parentMerge branch 'yh/fix-non-themed-combobox' (diff)
parentgitk: do not hard-code color of search results in commit list (diff)
downloadgit-bfb0fa7099e541c15d103b75f453f613a751da03.tar.gz
git-bfb0fa7099e541c15d103b75f453f613a751da03.zip
Merge branch 'top-panel-search-highlight' of github.com:bnfour/gitk
* 'top-panel-search-highlight' of github.com:bnfour/gitk: gitk: do not hard-code color of search results in commit list Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Diffstat (limited to '')
-rwxr-xr-xgitk4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitk b/gitk
index 966833a19e..19689765cd 100755
--- a/gitk
+++ b/gitk
@@ -7108,7 +7108,7 @@ proc findselectline {l} {
# mark the bits of a headline or author that match a find string
proc markmatches {canv l str tag matches font row} {
- global selectedline
+ global selectedline foundbgcolor
set bbox [$canv bbox $tag]
set x0 [lindex $bbox 0]
@@ -7122,7 +7122,7 @@ proc markmatches {canv l str tag matches font row} {
set xlen [font measure $font [string range $str 0 [expr {$end}]]]
set t [$canv create rect [expr {$x0+$xoff}] $y0 \
[expr {$x0+$xlen+2}] $y1 \
- -outline {} -tags [list match$l matches] -fill yellow]
+ -outline {} -tags [list match$l matches] -fill $foundbgcolor]
$canv lower $t
if {$row == $selectedline} {
$canv raise $t secsel