[dark theme] fixed themes switching

This commit is contained in:
Maxim Kadushkin 2021-02-17 18:58:24 +03:00
parent 2ba6fdd351
commit 7b7d037176
2 changed files with 3 additions and 3 deletions

View file

@ -54,10 +54,10 @@ define([
setTheme: function (name) {
if ( sdk_themes_relation.contains(name) ) {
var classname = document.documentElement.className.replace(/theme-\w+\s?/, '');
document.documentElement.className = classname;
document.body.className = classname;
this.api.asc_setSkin(sdk_themes_relation[name]);
$(':root').addClass(name);
$('body').addClass(name);
Common.localStorage.setItem('ui-theme', name);
Common.NotificationCenter.trigger('uitheme:change', name);
}

View file

@ -1,6 +1,6 @@
:root {
&.theme-dark {
.theme-dark {
--toolbar-header-document: #2a2a2a;
--toolbar-header-spreadsheet: #2a2a2a;
--toolbar-header-presentation: #2a2a2a;