Skip to content

Commit 96402c3

Browse files
committed
fix: content theme classic 改为 light
1 parent 08e43b5 commit 96402c3

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

src-tauri/tauri.conf.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
{
1616
"title": "NoteGen",
1717
"label": "main",
18-
"width": 1280,
19-
"height": 850,
18+
"width": 1360,
19+
"height": 720,
2020
"dragDropEnabled": false
2121
}
2222
],

src/app/core/article/custom-toolbar/settings.type.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/app/core/article/md-editor.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,14 @@ export function MdEditor() {
145145
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
146146
setTheme('dark')
147147
} else {
148-
setTheme('classic')
148+
setTheme('light')
149149
}
150150
} else {
151151
if (editor) {
152-
const editorTheme = theme === 'dark' ? 'dark' : 'classic'
153-
const contentTheme = theme === 'dark' ? 'dark' : 'classic'
152+
const editorTheme = theme === 'dark' ? 'dark' : 'light'
153+
const contentTheme = theme === 'dark' ? 'dark' : 'light'
154154
const codeTheme = theme === 'dark' ? 'github-dark' : 'github-light'
155-
editor.setTheme(editorTheme, contentTheme, codeTheme)
155+
editor.setTheme(editorTheme === 'dark' ? 'dark' : 'classic', contentTheme, codeTheme)
156156
}
157157
}
158158
}, [theme, editor])

0 commit comments

Comments
 (0)