{"thread":{"id":"50000","subject":"[PATCH] gitk: Use themable foundbgcolor also in headlines and authors","startedAt":"2018-12-11T00:38:48Z","lastAt":"2018-12-11T00:38:48Z","messageCount":1,"participants":["Guillermo S. Romero"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"364997","messageId":"20181211001427.GA10426@fortress.battleship","threadId":"50000","inReplyTo":null,"subject":"[PATCH] gitk: Use themable foundbgcolor also in headlines and authors","fromName":"Guillermo S. Romero","fromEmail":"gsromero@infernal-iceberg.com","sentAt":"2018-12-11T00:14:27Z","receivedAt":"2018-12-11T00:38:48Z","isPatch":true,"sender":{"key":"gsromero@infernal-iceberg.com","avatar":null},"body":"Signed-off-by: Guillermo S. Romero <gsromero@infernal-iceberg.com>\n---\n\nHi:\n\nThis removes the hardcoded color and uses the user config (still\nyellow by default) so searches share a common look.\n\nGSR\n \n\nPS: Not subscribed to git@vger, so remember to CC: me.\n\n\n gitk | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/gitk b/gitk\nindex a14d7a1..8837e46 100755\n--- a/gitk\n+++ b/gitk\n@@ -6952,7 +6952,7 @@ proc findselectline {l} {\n \n # mark the bits of a headline or author that match a find string\n proc markmatches {canv l str tag matches font row} {\n-    global selectedline\n+    global selectedline foundbgcolor\n \n     set bbox [$canv bbox $tag]\n     set x0 [lindex $bbox 0]\n@@ -6966,7 +6966,7 @@ proc markmatches {canv l str tag matches font row} {\n \tset xlen [font measure $font [string range $str 0 [expr {$end}]]]\n \tset t [$canv create rect [expr {$x0+$xoff}] $y0 \\\n \t\t   [expr {$x0+$xlen+2}] $y1 \\\n-\t\t   -outline {} -tags [list match$l matches] -fill yellow]\n+\t\t   -outline {} -tags [list match$l matches] -fill $foundbgcolor]\n \t$canv lower $t\n \tif {$row == $selectedline} {\n \t    $canv raise $t secsel\n-- \n2.20.0.rc2\n\n"}]}