From 4a93e76ec4de43d39d1f4756b0f2f622684c7c70 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Mon, 22 Nov 2021 19:18:12 +0300 Subject: [PATCH] [DE] show "dark mode" option for pdf/xps/djvu --- apps/documenteditor/main/app/controller/Viewport.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Viewport.js b/apps/documenteditor/main/app/controller/Viewport.js index 8a229dc0b..5edcbdb35 100644 --- a/apps/documenteditor/main/app/controller/Viewport.js +++ b/apps/documenteditor/main/app/controller/Viewport.js @@ -325,8 +325,7 @@ define([ })).on('click', _on_btn_zoom.bind(me, 'up')); me.header.btnOptions.menu.on('item:click', me.onOptionsItemClick.bind(this)); - var document = DE.getController('Main').document; - if ( !Common.UI.Themes.isDarkTheme() || /^pdf|djvu|xps|oxps$/.test(document.fileType) ) { + if ( !Common.UI.Themes.isDarkTheme() ) { me.header.menuItemsDarkMode.hide(); me.header.menuItemsDarkMode.$el.prev('.divider').hide(); }