From 77a3e41fb1fa01fe739c5c450a374498abe7f6d0 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 11 Nov 2018 19:22:30 -0500 Subject: 0.3.2 css themes, --dark & --light (default) --- src/doc_reform/output/html.d | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/doc_reform/output/html.d') 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 } -- cgit v1.2.3