gnucash maint: [stylesheet-css] reflect recent changes to default CSS

Christopher Lam clam at code.gnucash.org
Sun Feb 16 09:31:30 EST 2020


Updated	 via  https://github.com/Gnucash/gnucash/commit/c60555e9 (commit)
	from  https://github.com/Gnucash/gnucash/commit/555a467a (commit)



commit c60555e9c53e09b1b2a0a55a0d71d4bb54d0c0b3
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sun Feb 16 22:28:55 2020 +0800

    [stylesheet-css] reflect recent changes to default CSS
    
    default css contains changes:
    * td.highlight
    * dark color schemes

diff --git a/gnucash/report/report-system/html-fonts.scm b/gnucash/report/report-system/html-fonts.scm
index 930419375..945fa027e 100644
--- a/gnucash/report/report-system/html-fonts.scm
+++ b/gnucash/report/report-system/html-fonts.scm
@@ -132,6 +132,8 @@
     (gnc:html-document-set-style-text!
      ssdoc
      (string-append
+      ;; Note: any changes in the default CSS *should* be duplicated in
+      ;; stylesheet-css.scm
       "@media (prefers-color-scheme: dark) {body {color: #000; background-color: #fff;}}\n"
       "h3 { " title-info " }\n"
       "a { " account-link-info " }\n"
diff --git a/gnucash/report/stylesheets/stylesheet-css.scm b/gnucash/report/stylesheets/stylesheet-css.scm
index 69215358b..f5f6e0097 100644
--- a/gnucash/report/stylesheets/stylesheet-css.scm
+++ b/gnucash/report/stylesheets/stylesheet-css.scm
@@ -29,6 +29,12 @@
 (gnc:module-load "gnucash/report/report-system" 0)
 
 (define default-css "/* default style */
+ at media (prefers-color-scheme: dark) {
+    body {
+        color: #000; background-color: #fff;
+    }
+}
+
 html, body {
     height: 100vh;
     margin: 0;
@@ -90,6 +96,10 @@ td.neg {
 td.number-cell, td.total-number-cell, td.anchor-cell, td.date-cell {
     white-space: nowrap;
 }
+
+td.highlight {
+    background-color: #e1e1e1
+}
 ")
 
 (define (css-options)



Summary of changes:
 gnucash/report/report-system/html-fonts.scm   |  2 ++
 gnucash/report/stylesheets/stylesheet-css.scm | 10 ++++++++++
 2 files changed, 12 insertions(+)



More information about the gnucash-changes mailing list