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

Anton Shestakov av6 at dwimlabs.net
Sat Jul 16 04:28:51 EDT 2016


# HG changeset patch
# User Anton Shestakov <av6 at 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

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 {


More information about the Mercurial-devel mailing list