From fd1aefd4aeb64d6e13049d2fa90f2f4ff0bdb64a Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Wed, 21 Jul 2021 19:23:49 +0300 Subject: [PATCH] [DE] restore content's dark mode after relaunch --- apps/common/main/lib/controller/Themes.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/common/main/lib/controller/Themes.js b/apps/common/main/lib/controller/Themes.js index 9bb884044..92790bab1 100644 --- a/apps/common/main/lib/controller/Themes.js +++ b/apps/common/main/lib/controller/Themes.js @@ -261,6 +261,10 @@ define([ obj.name = theme_name; api.asc_setSkin(obj); + if ( this.isDarkTheme() ) { + this.api.asc_setContentDarkMode(this.isContentThemeDark()); + } + Common.NotificationCenter.on('document:ready', on_document_ready.bind(this)); },