[Libreoffice-commits] help.git: help3xsl/help2.js

Olivier Hallot (via logerrit) logerrit at kemper.freedesktop.org
Thu Jun 11 18:34:50 UTC 2020


 help3xsl/help2.js |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

New commits:
commit 7c55241a443bdbfaa46613ddd456edfeb9f5e1b3
Author:     Olivier Hallot <olivier.hallot at libreoffice.org>
AuthorDate: Thu Jun 11 15:31:59 2020 -0300
Commit:     Olivier Hallot <olivier.hallot at libreoffice.org>
CommitDate: Thu Jun 11 20:34:27 2020 +0200

    Fix applicaiton color and h1 underline CSS
    
    Change-Id: Ia8a18f4a8e1bd12c40a092528e68ec2f12846ac1
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/96162
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot at libreoffice.org>

diff --git a/help3xsl/help2.js b/help3xsl/help2.js
index 382627d83..95635c846 100644
--- a/help3xsl/help2.js
+++ b/help3xsl/help2.js
@@ -73,8 +73,8 @@ function moduleColor (module) {
         case "WRITER" : {color="#0369A3"; break;}
         case "CALC"   : {color="#43C330"; break;}
         case "CHART"  : {color="darkcyan"; break;}
-        case "DRAW"   : {color="#A33E03"; break;}
-        case "IMPRESS": {color="#C99C00"; break;}
+        case "IMPRESS": {color="#A33E03"; break;}
+        case "DRAW"   : {color="#C99C00"; break;}
         case "BASE"   : {color="#8E03A3"; break;}
         case "BASIC"  : {color="black"; break;}
         case "MATH"   : {color="darkslategray"; break;}
@@ -88,7 +88,10 @@ function moduleColor (module) {
     for(i = 0; i < cols.length; i++) {cols[i].style.backgroundColor = color;};
     for (j of [1,2,3,4,5,6]) {
         var hh = document.getElementsByTagName("H" + j);
-        for(i = 0; i < hh.length; i++) {hh[i].style.color = color;}
+        for(i = 0; i < hh.length; i++) {
+            hh[i].style.color = color;
+            hh[i].style.borderBottomColor = color;
+        }
     }
 }
 


More information about the Libreoffice-commits mailing list