{"thread":{"id":"24475","subject":"[PATCH 2/3] gitk: improve dark background, use diffcolor 2 for link","startedAt":"2010-07-22T23:12:43Z","lastAt":"2010-07-22T23:12:43Z","messageCount":1,"participants":["David Fries"],"isPatch":true,"patchVersion":1,"patchTotal":3},"messages":[{"id":"146033","messageId":"20100722231243.GA25152@spacedout.fries.net","threadId":"24475","inReplyTo":null,"subject":"[PATCH 2/3] gitk: improve dark background, use diffcolor 2 for link","fromName":"David Fries","fromEmail":"david@fries.net","sentAt":"2010-07-22T23:12:43Z","receivedAt":"2010-07-22T23:12:43Z","isPatch":true,"sender":{"key":"david@fries.net","avatar":"https://avatars.githubusercontent.com/u/2767875?v=4"},"body":"blue on a black background might as well look like dark blue on black\nand is very difficult to read.  The \"Diff: hunk header\" keeps the\ncolors more consistent and both default to blue.\n---\n gitk-git/gitk |    4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/gitk-git/gitk b/gitk-git/gitk\nindex 8ca7182..a851762 100644\n--- a/gitk-git/gitk\n+++ b/gitk-git/gitk\n@@ -6673,7 +6673,7 @@ proc appendwithlinks {text tags} {\n }\n \n proc setlink {id lk} {\n-    global curview ctext pendinglinks\n+    global curview ctext pendinglinks diffcolors\n \n     set known 0\n     if {[string length $id] < 40} {\n@@ -6687,7 +6687,7 @@ proc setlink {id lk} {\n \tset known [commitinview $id $curview]\n     }\n     if {$known} {\n-\t$ctext tag conf $lk -foreground blue -underline 1\n+\t$ctext tag conf $lk -foreground [lindex $diffcolors 2] -underline 1\n \t$ctext tag bind $lk <1> [list selbyid $id]\n \t$ctext tag bind $lk <Enter> {linkcursor %W 1}\n \t$ctext tag bind $lk <Leave> {linkcursor %W -1}\n-- \n1.7.1\n"}]}