Default slide colors

pull/1/head
yflory 4 years ago
parent 4f2a8c2d85
commit 2501b39ba7

@ -527,7 +527,12 @@ define([
editor.focus(); editor.focus();
if (newPad) { 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 () { }); CodeMirror.setMode('markdown', function () { });

Loading…
Cancel
Save