monoblue: make different blocks of annotated lines have different colors
authorAnton Shestakov <av6@dwimlabs.net>
Sat, 16 Jul 2016 15:06:04 +0800
changeset 29574 0484dfa1e972
parent 29573 2b42fa1810c4
child 29575 1cc5a918b7d8
monoblue: make different blocks of annotated lines have different colors
mercurial/templates/monoblue/map
mercurial/templates/static/style-monoblue.css
--- a/mercurial/templates/monoblue/map	Sat Jul 16 15:00:36 2016 +0800
+++ b/mercurial/templates/monoblue/map	Sat Jul 16 15:06:04 2016 +0800
@@ -92,7 +92,7 @@
   <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}
--- a/mercurial/templates/static/style-monoblue.css	Sat Jul 16 15:00:36 2016 +0800
+++ b/mercurial/templates/static/style-monoblue.css	Sat Jul 16 15:06:04 2016 +0800
@@ -210,10 +210,12 @@
   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 {