mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-16 03:58:07 +01:00
🚨
This commit is contained in:
parent
dd19b9bc44
commit
2ae388d2bb
9 changed files with 18 additions and 23 deletions
|
|
@ -344,14 +344,14 @@ export const appearance = {
|
|||
ipcRenderer.send(Constants.SIYUAN_CONFIG_CLOSE, data.closeButtonBehavior);
|
||||
/// #endif
|
||||
loadAssets(data);
|
||||
const modeElement = document.getElementById("barThemeMode")
|
||||
const modeElement = document.getElementById("barThemeMode");
|
||||
if (modeElement) {
|
||||
if (data.mode === 1) {
|
||||
modeElement.classList.add("toolbar__item--active");
|
||||
modeElement.setAttribute("aria-label", window.siyuan.languages.themeLight)
|
||||
modeElement.setAttribute("aria-label", window.siyuan.languages.themeLight);
|
||||
} else {
|
||||
modeElement.classList.remove("toolbar__item--active");
|
||||
modeElement.setAttribute("aria-label", window.siyuan.languages.themeDark)
|
||||
modeElement.setAttribute("aria-label", window.siyuan.languages.themeDark);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue