mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
This commit is contained in:
parent
681bae81c5
commit
aa1e2b4957
5 changed files with 10 additions and 6 deletions
|
|
@ -68,7 +68,7 @@ export const onGetConfig = (isStart: boolean, app: App) => {
|
|||
initBar(app);
|
||||
initStatus();
|
||||
initWindow(app);
|
||||
appearance.onSetappearance(window.siyuan.config.appearance);
|
||||
appearance.onSetAppearance(window.siyuan.config.appearance);
|
||||
initAssets();
|
||||
setInlineStyle();
|
||||
renderSnippet();
|
||||
|
|
|
|||
|
|
@ -213,7 +213,7 @@ export const appearance = {
|
|||
}
|
||||
}
|
||||
}
|
||||
appearance.onSetappearance(response.data);
|
||||
appearance.onSetAppearance(response.data);
|
||||
if (response.data.hideStatusBar) {
|
||||
document.getElementById("status").classList.add("fn__none");
|
||||
} else {
|
||||
|
|
@ -253,7 +253,7 @@ export const appearance = {
|
|||
});
|
||||
});
|
||||
},
|
||||
onSetappearance(data: Config.IAppearance) {
|
||||
onSetAppearance(data: Config.IAppearance) {
|
||||
if (data.lang !== window.siyuan.config.appearance.lang) {
|
||||
exportLayout({
|
||||
cb() {
|
||||
|
|
|
|||
|
|
@ -756,6 +756,10 @@ export const bazaar = {
|
|||
}, async response => {
|
||||
this._genMyHTML(bazaarType, app);
|
||||
bazaar._onBazaar(response, bazaarType, ["icons"].includes(bazaarType));
|
||||
// https://github.com/siyuan-note/siyuan/issues/15177
|
||||
if (bazaarType === "themes" && response.data.appearance?.themeVer) {
|
||||
window.siyuan.config.appearance.themeVer = response.data.appearance.themeVer;
|
||||
}
|
||||
// 更新主题后不需要对该主题进行切换 https://github.com/siyuan-note/siyuan/issues/4966
|
||||
// https://github.com/siyuan-note/siyuan/issues/5411
|
||||
if (bazaarType === "themes" && (
|
||||
|
|
@ -1201,7 +1205,7 @@ export const bazaar = {
|
|||
}
|
||||
element.innerHTML = `<div class="b3-cards">${html}</div>`;
|
||||
if (reload) {
|
||||
appearance.onSetappearance(response.data.appearance);
|
||||
appearance.onSetAppearance(response.data.appearance);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -360,7 +360,7 @@ export const setMode = (modeElementValue: number) => {
|
|||
}
|
||||
}
|
||||
}
|
||||
appearance.onSetappearance(response.data);
|
||||
appearance.onSetAppearance(response.data);
|
||||
});
|
||||
/// #endif
|
||||
};
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ export const init = (app: App) => {
|
|||
});
|
||||
initStatus(true);
|
||||
initWindow(app);
|
||||
appearance.onSetappearance(window.siyuan.config.appearance);
|
||||
appearance.onSetAppearance(window.siyuan.config.appearance);
|
||||
initAssets();
|
||||
setInlineStyle();
|
||||
renderSnippet();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue