aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/output/html.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2018-11-11 19:22:30 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2019-04-10 15:14:15 -0400
commit77a3e41fb1fa01fe739c5c450a374498abe7f6d0 (patch)
treebf0eee1251d6d68b7d8176482617dad9be76f4e5 /src/doc_reform/output/html.d
parent--workon flag, for some under construction code (diff)
0.3.2 css themes, --dark & --light (default)
Diffstat (limited to 'src/doc_reform/output/html.d')
-rw-r--r--src/doc_reform/output/html.d8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/doc_reform/output/html.d b/src/doc_reform/output/html.d
index e247221..63a5dc2 100644
--- a/src/doc_reform/output/html.d
+++ b/src/doc_reform/output/html.d
@@ -502,9 +502,13 @@ template outputHTML() {
(pth_html.css).mkdirRecurse;
}
auto f = File(pth_html.fn_seg_css, "w");
- f.writeln(css.html_seg_css);
+ (doc_matters.opt.action.css_theme_default)
+ ? f.writeln(css.light.html_seg)
+ : f.writeln(css.dark.html_seg);
f = File(pth_html.fn_scroll_css, "w");
- f.writeln(css.html_scroll_css);
+ (doc_matters.opt.action.css_theme_default)
+ ? f.writeln(css.light.html_scroll)
+ : f.writeln(css.dark.html_scroll);
} catch (ErrnoException ex) {
// Handle error
}