diff --git a/www/slide/inner.js b/www/slide/inner.js index aa0d3c2ed..013a495e3 100644 --- a/www/slide/inner.js +++ b/www/slide/inner.js @@ -527,7 +527,12 @@ define([ editor.focus(); if (newPad) { - colors.updateLocalColors('#000', '#FFF'); + var isDark = window.CryptPad_theme === "dark"; + if (isDark) { + colors.updateLocalColors('#FFF', '#000'); + } else { + colors.updateLocalColors('#000', '#FFF'); + } } CodeMirror.setMode('markdown', function () { });