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/epub3.d | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/doc_reform/output/epub3.d') diff --git a/src/doc_reform/output/epub3.d b/src/doc_reform/output/epub3.d index e862a3f..4d86036 100644 --- a/src/doc_reform/output/epub3.d +++ b/src/doc_reform/output/epub3.d @@ -794,14 +794,18 @@ template outputEPub3() { { /+ debug +/ if (doc_matters.opt.action.debug_do) { fn_dbg = pth_epub3.dbg_fn_oebps_css(doc_matters.src.filename); - File(fn_dbg, "w").writeln(css.epub_css); + (doc_matters.opt.action.css_theme_default) + ? File(fn_dbg, "w").writeln(css.light.epub) + : File(fn_dbg, "w").writeln(css.dark.epub); } } fn = pth_epub3.fn_oebps_css(doc_matters.src.filename); auto zip_arc_member_file = new ArchiveMember(); zip_arc_member_file.name = fn; auto zip_data = new OutBuffer(); - zip_data.write(css.epub_css.dup); + (doc_matters.opt.action.css_theme_default) + ? zip_data.write(css.light.epub.dup) + : zip_data.write(css.dark.epub.dup); zip_arc_member_file.expandedData = zip_data.toBytes(); zip.addMember(zip_arc_member_file); createZipFile!()(fn_epub, zip.build()); -- cgit v1.2.3