Use Dracula theme by default in dark Codemirror

pull/1/head
David Benqué 4 years ago
parent 5524cb444e
commit 1b7173b29f

@ -381,7 +381,7 @@ define([
/* Remember the user's last choice of theme using localStorage */ /* Remember the user's last choice of theme using localStorage */
var isDark = window.CryptPad_theme === "dark"; var isDark = window.CryptPad_theme === "dark";
var themeKey = ['codemirror', isDark ? 'themedark' : 'theme']; var themeKey = ['codemirror', isDark ? 'themedark' : 'theme'];
var defaultTheme = isDark ? 'ansuz' : 'default'; var defaultTheme = isDark ? 'dracula' : 'default';
var todo = function (err, lastTheme) { var todo = function (err, lastTheme) {
lastTheme = lastTheme || defaultTheme; lastTheme = lastTheme || defaultTheme;

Loading…
Cancel
Save