From 2501b39ba75866b301f624227f8d29804bfd77f2 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 29 Jan 2021 11:17:31 +0100 Subject: [PATCH] Default slide colors --- www/slide/inner.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 () { });