Patchwork [3,of,4] monoblue: make different blocks of annotated lines have different colors

login
register
mail settings
Submitter Anton Shestakov
Date July 16, 2016, 8:28 a.m.
Message ID <2a15c71eaea784e774a1.1468657731@neuro>
Download mbox | patch
Permalink /patch/15906/
State Accepted
Headers show

Comments

Anton Shestakov - July 16, 2016, 8:28 a.m.
# HG changeset patch
# User Anton Shestakov <av6@dwimlabs.net>
# Date 1468652764 -28800
#      Sat Jul 16 15:06:04 2016 +0800
# Node ID 2a15c71eaea784e774a14a9291ca01fa813d0dfd
# Parent  9ddf432aa5237e360d9aa1ed78af592e75699f44
monoblue: make different blocks of annotated lines have different colors

Patch

diff --git a/mercurial/templates/monoblue/map b/mercurial/templates/monoblue/map
--- a/mercurial/templates/monoblue/map
+++ b/mercurial/templates/monoblue/map
@@ -92,7 +92,7 @@  fileline = '
   <a href="#{lineid}"></a><span id="{lineid}">{strip(line|escape, '\r\n')}</span>'
 annotateline = '
   <tr id="{lineid}" class="parity{parity}{ifeq(node, originalnode, ' thisrev')}">
-    <td class="annotate linenr">
+    <td class="annotate linenr parity{blockparity}">
       {if(blockhead,
           '<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}">
              {rev}
diff --git a/mercurial/templates/static/style-monoblue.css b/mercurial/templates/static/style-monoblue.css
--- a/mercurial/templates/static/style-monoblue.css
+++ b/mercurial/templates/static/style-monoblue.css
@@ -210,10 +210,12 @@  table tr.parity1:hover {
   background: #D5E1E6;
 }
 */
-table tr.parity0 {
+table tr.parity0,
+table td.annotate.parity0 {
   background: #F1F6F7;
 }
-table tr.parity1 {
+table tr.parity1,
+table td.annotate.parity1 {
   background: #FFFFFF;
 }
 table tr td {