git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] gitk: Use themable foundbgcolor also in headlines and authors

From
GRGuillermo S. Romero <gsromero@infernal-iceberg.com>
Date
Dec 11, 2018, 00:14 UTC
Message-ID
<20181211001427.GA10426@fortress.battleship>
Signed-off-by: Guillermo S. Romero <gsromero@infernal-iceberg.com>
---
Hi:

This removes the hardcoded color and uses the user config (still yellow by default) so searches share a common look.

GSR
 
PS: Not subscribed to git@vger, so remember to CC: me.
 gitk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gitk b/gitk
index a14d7a1..8837e46 100755
--- a/gitk
+++ b/gitk
@@ -6952,7 +6952,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]
@@ -6966,7 +6966,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
-- 
2.20.0.rc2
Message 1 of 1 in “gitk: Use themable foundbgcolor also in headlines and authors”
  1. gitk: Use themable foundbgcolor also in headlines and authorsGuillermo S. Romero, Dec 11, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.