[dark theme] fixed themes switching
This commit is contained in:
parent
2ba6fdd351
commit
7b7d037176
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
:root {
|
||||
&.theme-dark {
|
||||
.theme-dark {
|
||||
--toolbar-header-document: #2a2a2a;
|
||||
--toolbar-header-spreadsheet: #2a2a2a;
|
||||
--toolbar-header-presentation: #2a2a2a;
|
||||
|
|
Loading…
Reference in a new issue