mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-21 07:46:09 +01:00
🚨
This commit is contained in:
parent
dd19b9bc44
commit
2ae388d2bb
9 changed files with 18 additions and 23 deletions
|
|
@ -8,7 +8,6 @@ import {getDisplayName, getOpenNotebookCount, pathPosix} from "./pathName";
|
|||
import {openFileById} from "../editor/util";
|
||||
import {Constants} from "../constants";
|
||||
import {isMobile} from "./functions";
|
||||
import {openMobileFileById} from "../mobile/editor";
|
||||
|
||||
export const newFile = (notebookId?: string, currentPath?: string, open?: boolean) => {
|
||||
if (getOpenNotebookCount() === 0) {
|
||||
|
|
|
|||
|
|
@ -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", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue