From 95243a6e9dfd074e07d93228df9d905ec3e6fe81 Mon Sep 17 00:00:00 2001 From: maxkadushkin Date: Wed, 20 Sep 2023 00:53:40 +0300 Subject: [PATCH] [desktop] fix bug 63875 --- apps/common/main/lib/util/desktopinit.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/common/main/lib/util/desktopinit.js b/apps/common/main/lib/util/desktopinit.js index 9cd5677cd2..8a7680746b 100644 --- a/apps/common/main/lib/util/desktopinit.js +++ b/apps/common/main/lib/util/desktopinit.js @@ -55,6 +55,12 @@ if ( window.AscDesktopEditor ) { type: theme.type, } + if ( /dark|light/.test(theme.system) ) { + window.uitheme.is_system_theme_dark = function () { + return theme.system == 'dark'; + } + } + if ( map_themes && map_themes[theme.id] ) { window.uitheme.colors = map_themes[theme.id].colors; // window.desktop.themes = map_themes;