[DE] fix bug 52950

This commit is contained in:
Maxim Kadushkin 2021-10-27 18:50:12 +03:00
parent e6e7638053
commit 68e45180a2
2 changed files with 0 additions and 17 deletions

View file

@ -351,10 +351,6 @@ define([
if ( me.btnOptions )
me.btnOptions.updateHint(me.tipViewSettings);
if ( me.btnContentMode ) {
me.btnContentMode.on('click', function (e) { Common.UI.Themes.toggleContentTheme(); });
}
}
function onDocNameKeyDown(e) {
@ -392,9 +388,6 @@ define([
}
function onContentThemeChangedToDark(isdark) {
if ( this.btnContentMode ) {
this.btnContentMode.changeIcon(!isdark ? {curr: 'btn-mode-light', next: 'btn-mode-dark'} : {curr: 'btn-mode-dark', next: 'btn-mode-light'});
}
}
return {
@ -561,15 +554,6 @@ define([
$btnUsers = $html.find('.btn-users');
$panelUsers.hide();
if ( !!window.DE ) {
var mode_cls = Common.UI.Themes.isContentThemeDark() ? 'btn-mode-light' : 'btn-mode-dark';
me.btnContentMode = createTitleButton('toolbar__icon icon--inverse ' + mode_cls, $html.findById('#slot-btn-mode'), undefined, 'bottom', 'big');
var document = window.DE.getController('Main').document;
me.btnContentMode.setVisible(Common.UI.Themes.isDarkTheme() && !/^pdf|djvu|xps|oxps$/.test(document.fileType));
}
return $html;
} else
if ( role == 'title' ) {

View file

@ -379,7 +379,6 @@ define([
menuItem.$el.prev('.divider')[current_dark ? 'show' : 'hide']();
menuItem.setChecked(current_dark);
this.header.btnContentMode.setVisible(current_dark);
}
},