This commit is contained in:
Vanessa 2022-06-10 00:54:53 +08:00
parent dd19b9bc44
commit 2ae388d2bb
9 changed files with 18 additions and 23 deletions

View file

@ -224,10 +224,10 @@ const initBar = () => {
}
if (barThemeModeElement.classList.contains("toolbar__item--active")) {
barThemeModeElement.classList.remove("toolbar__item--active");
barThemeModeElement.setAttribute("aria-label", window.siyuan.languages.themeDark)
barThemeModeElement.setAttribute("aria-label", window.siyuan.languages.themeDark);
} else {
barThemeModeElement.classList.add("toolbar__item--active");
barThemeModeElement.setAttribute("aria-label", window.siyuan.languages.themeLight)
barThemeModeElement.setAttribute("aria-label", window.siyuan.languages.themeLight);
}
barThemeModeElement.setAttribute("disabled", "disabled");
fetchPost("/api/system/setAppearanceMode", {