Vanessa 2023-04-17 13:35:10 +08:00
parent 1cc838950a
commit 4822fc1bf7
17 changed files with 8 additions and 403 deletions

View file

@ -112,9 +112,6 @@ class App {
progressBackgroundTask(data.data.tasks);
break;
case "refreshtheme":
if (!window.siyuan.config.appearance.customCSS && data.data.theme.indexOf("custom.css") > -1) {
return;
}
if ((window.siyuan.config.appearance.mode === 1 && window.siyuan.config.appearance.themeDark !== "midnight") || (window.siyuan.config.appearance.mode === 0 && window.siyuan.config.appearance.themeLight !== "daylight")) {
(document.getElementById("themeStyle") as HTMLLinkElement).href = data.data.theme;
} else {