Default slide colors

pull/1/head
yflory 2021-01-29 11:17:31 +01:00
parent 4f2a8c2d85
commit 2501b39ba7
1 changed files with 6 additions and 1 deletions

View File

@ -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 () { });