[stylesheets] change theme for 'document' area in DE and PE
This commit is contained in:
parent
c81778a5a6
commit
39a5bad243
|
@ -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");
|
||||
})
|
||||
},
|
||||
|
||||
|
|
|
@ -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");
|
||||
})
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue