From 87635fde48a68b1c1fcc3386dc4b7c47d12a178a Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Wed, 8 Dec 2021 18:20:19 +0300 Subject: [PATCH] [DE] fix bug 54348 --- apps/documenteditor/main/app/controller/Viewport.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/documenteditor/main/app/controller/Viewport.js b/apps/documenteditor/main/app/controller/Viewport.js index 470c9a9ec..7ea7f1416 100644 --- a/apps/documenteditor/main/app/controller/Viewport.js +++ b/apps/documenteditor/main/app/controller/Viewport.js @@ -325,7 +325,8 @@ define([ })).on('click', _on_btn_zoom.bind(me, 'up')); me.header.btnOptions.menu.on('item:click', me.onOptionsItemClick.bind(this)); - if ( !Common.UI.Themes.isDarkTheme() ) { + var document = DE.getController('Main').document; + if ( !Common.UI.Themes.isDarkTheme() || /^pdf|djvu|xps|oxps$/.test(document.fileType) ) { me.header.menuItemsDarkMode.hide(); me.header.menuItemsDarkMode.$el.prev('.divider').hide(); }