From b46d003c0dc2e594ff41d328dbf22918d523ec5a Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 30 Nov 2022 21:28:22 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/pull/6741 --- app/src/protyle/export/index.ts | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts index 1b9e071c6..5340bcebb 100644 --- a/app/src/protyle/export/index.ts +++ b/app/src/protyle/export/index.ts @@ -72,6 +72,11 @@ const renderPDF = (id: string) => { keepFold: false, })); const servePath = window.location.protocol + "//" + window.location.host; + const isDefault = (window.siyuan.config.appearance.mode === 1 && window.siyuan.config.appearance.themeDark === "midnight") || (window.siyuan.config.appearance.mode === 0 && window.siyuan.config.appearance.themeLight === "daylight") + let themeStyle = ""; + if (!isDefault) { + themeStyle = `` + } const html = ` @@ -81,8 +86,8 @@ const renderPDF = (id: string) => { - - + + ${themeStyle} ${window.siyuan.languages.export} PDF