From: "Guillermo S. Romero" <gsromero@infernal-iceberg.com>
To: git@vger.kernel.org
Cc: paulus@samba.org
Subject: [PATCH] gitk: Use themable foundbgcolor also in headlines and authors
Date: Tue, 11 Dec 2018 01:14:27 +0100 [thread overview]
Message-ID: <20181211001427.GA10426@fortress.battleship> (raw)
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
reply other threads:[~2018-12-11 0:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181211001427.GA10426@fortress.battleship \
--to=gsromero@infernal-iceberg.com \
--cc=git@vger.kernel.org \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.