Skip to content

Commit

Permalink
fix: init of theme
Browse files Browse the repository at this point in the history
  • Loading branch information
YangFong committed Sep 15, 2024
1 parent 9c202dd commit e43937c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/CodemirrorEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function initEditor() {
}
editor.value = CodeMirror.fromTextArea(editorDom, {
mode: `text/x-markdown`,
theme: `xq-light`,
theme: isDark.value ? `darcula` : `xq-light`,
lineNumbers: false,
lineWrapping: true,
styleActiveLine: true,
Expand Down

0 comments on commit e43937c

Please sign in to comment.