[stylesheets] change theme for 'document' area in DE and PE

This commit is contained in:
Maxim Kadushkin 2020-12-29 10:34:59 +03:00
parent c81778a5a6
commit 39a5bad243
2 changed files with 8 additions and 0 deletions

View file

@ -1121,6 +1121,10 @@ define([
$(':root').toggleClass('theme-dark');
// getComputedStyle(document.documentElement).getPropertyValue('--background-normal');
if (AscCommon.GlobalSkin.Name == 'flat')
me.api.asc_setSkin('flatDark');
else me.api.asc_setSkin("flat");
})
},

View file

@ -845,6 +845,10 @@ define([
$(':root').toggleClass('theme-dark');
// getComputedStyle(document.documentElement).getPropertyValue('--background-normal');
if (AscCommon.GlobalSkin.Name == 'flat')
me.api.asc_setSkin('flatDark');
else me.api.asc_setSkin("flat");
})
},