[PE] switch to dark theme

This commit is contained in:
Maxim Kadushkin 2020-12-21 13:31:46 +03:00
parent d0b8151d35
commit 4c0e555be1
3 changed files with 9 additions and 2 deletions

View file

@ -839,6 +839,13 @@ define([
Common.Gateway.documentReady();
$('.doc-placeholder').remove();
$('#header-logo').children(0).click(e => {
e.stopImmediatePropagation();
$(':root').toggleClass('theme-dark');
// getComputedStyle(document.documentElement).getPropertyValue('--background-normal');
})
},
onLicenseChanged: function(params) {

View file

@ -133,7 +133,7 @@ define([
if (settingsType==Common.Utils.documentSettingsType.Slide) {
this._settings[settingsType].locked = value.get_LockDelete();
this._settings[settingsType].lockedBackground = value.get_LockBackground();
this._settings[settingsType].lockedEffects = value.get_LockTranzition();
this._settings[settingsType].lockedEffects = value.get_LockTransition();
this._settings[settingsType].lockedTiming = value.get_LockTiming();
this._settings[settingsType].lockedHeader = !!value.get_LockHeader && value.get_LockHeader();
} else {

View file

@ -1382,7 +1382,7 @@ define([
this._state.SlideColor = this.SlideColor.Color;
}
var timing = props.get_timing();
var timing = props.get_LockTiming();
if (timing) {
var value = timing.get_TransitionType();
var found = false;