git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH] gitk: Use themable foundbgcolor also in headlines and authors
@ 2018-12-11  0:14 Guillermo S. Romero
  0 siblings, 0 replies; only message in thread
From: Guillermo S. Romero @ 2018-12-11  0:14 UTC (permalink / raw)
  To: git; +Cc: paulus

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-12-11  0:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-11  0:14 [PATCH] gitk: Use themable foundbgcolor also in headlines and authors Guillermo S. Romero

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).