mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-13 07:56:14 +01:00
🚨
This commit is contained in:
parent
ccef05208b
commit
fae96fd141
4 changed files with 10 additions and 11 deletions
|
|
@ -211,10 +211,10 @@ export const appearance = {
|
|||
},
|
||||
bindEvent: () => {
|
||||
appearance.element.querySelector("#codeSnippet").addEventListener("click", () => {
|
||||
openSnippets()
|
||||
openSnippets();
|
||||
});
|
||||
appearance.element.querySelector("#appearanceCustomSetting").addEventListener("click", () => {
|
||||
openColorPicker()
|
||||
openColorPicker();
|
||||
});
|
||||
appearance.element.querySelector("#resetLayout").addEventListener("click", () => {
|
||||
fetchPost("/api/system/setUILayout", {layout: {}}, () => {
|
||||
|
|
@ -253,7 +253,6 @@ export const appearance = {
|
|||
}
|
||||
window.siyuan.config.appearance = data;
|
||||
if (appearance.element) {
|
||||
const theme = data.mode === 0 ? data.themeLight : data.themeDark;
|
||||
const modeElement = appearance.element.querySelector("#mode") as HTMLSelectElement;
|
||||
if (modeElement) {
|
||||
if (data.modeOS) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue