适配暗黑模式

This commit is contained in:
fofolee
2020-06-28 23:35:21 +08:00
parent 468ed2d9d3
commit 5967bab60e
5 changed files with 145 additions and 5 deletions

View File

@@ -391,7 +391,7 @@
autoCloseBrackets: true,
styleActiveLine: true,
keyMap: "sublime",
theme: "mdn-like",
theme: utools.isDarkColors() ? 'material-darker' : "mdn-like",
extraKeys: {
"Alt-Enter": () => {
$('.CodeMirror').hasClass('CodeMirror-fullscreen') &&
@@ -1030,7 +1030,6 @@
$("#customize").css({ top: '0px', padding: '0px' });
$("span.customscript > input").css({"height": "30px"})
var db = getDB('codeHistory')
window.editor.setOption("theme", "ambiance")
if (file) {
var fileinfo = getFileInfo({ type: 'file', argvs: file, readfile: true })
console.log(fileinfo);