From 5c1b1185dd32524599b95260401409796fcb0c19 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 19 Feb 2021 20:00:35 +0300 Subject: [PATCH] Delete dark theme tooltip --- .../main/app/controller/Viewport.js | 21 ------------------- .../main/app/controller/Viewport.js | 21 ------------------- .../main/app/controller/Viewport.js | 21 ------------------- 3 files changed, 63 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Viewport.js b/apps/documenteditor/main/app/controller/Viewport.js index ece465680..a7fbf3ef0 100644 --- a/apps/documenteditor/main/app/controller/Viewport.js +++ b/apps/documenteditor/main/app/controller/Viewport.js @@ -327,27 +327,6 @@ define([ Common.NotificationCenter.on('uitheme:change', function (name) { mnuitemDarkTheme.setChecked(Common.UI.Themes.isDarkTheme()); }); - - if (!Common.localStorage.getBool("hide-dark-theme-tip") && !(config.customization && config.customization.hideStartTips===true)) { - me.themeTip = new Common.UI.SynchronizeTip({ - target: me.header.btnOptions.$el, - placement : 'bottom-left', - showLink: false, - extCls: (config.customization && config.customization.toolbarNoTabs) ? 'toolbar-color' : 'theme-color', - text: me.textTipTheme - }); - me.themeTip.on({ - 'closeclick': function() { - me.themeTip.hide(); - }, - 'hide': function() { - me.themeTip = undefined; - Common.localStorage.setBool("hide-dark-theme-tip", true); - } - }); - me.themeTip.show(); - me.header.btnOptions.on('click', function() { me.themeTip && me.themeTip.hide(); }); - } } me.header.btnOptions.menu.on('item:click', me.onOptionsItemClick.bind(this)); } diff --git a/apps/presentationeditor/main/app/controller/Viewport.js b/apps/presentationeditor/main/app/controller/Viewport.js index c98f54fd5..4bb50f813 100644 --- a/apps/presentationeditor/main/app/controller/Viewport.js +++ b/apps/presentationeditor/main/app/controller/Viewport.js @@ -330,27 +330,6 @@ define([ Common.NotificationCenter.on('uitheme:change', function (name) { mnuitemDarkTheme.setChecked(Common.UI.Themes.isDarkTheme()); }); - - if (!Common.localStorage.getBool("hide-dark-theme-tip") && !(config.customization && config.customization.hideStartTips===true)) { - me.themeTip = new Common.UI.SynchronizeTip({ - target: me.header.btnOptions.$el, - placement : 'bottom-left', - showLink: false, - extCls: (config.customization && config.customization.toolbarNoTabs) ? 'toolbar-color' : 'theme-color', - text: me.textTipTheme - }); - me.themeTip.on({ - 'closeclick': function() { - me.themeTip.hide(); - }, - 'hide': function() { - me.themeTip = undefined; - Common.localStorage.setBool("hide-dark-theme-tip", true); - } - }); - me.themeTip.show(); - me.header.btnOptions.on('click', function() { me.themeTip && me.themeTip.hide(); }); - } } me.header.btnOptions.menu.on('item:click', me.onOptionsItemClick.bind(this)); diff --git a/apps/spreadsheeteditor/main/app/controller/Viewport.js b/apps/spreadsheeteditor/main/app/controller/Viewport.js index 7a3ef1390..c573a5c39 100644 --- a/apps/spreadsheeteditor/main/app/controller/Viewport.js +++ b/apps/spreadsheeteditor/main/app/controller/Viewport.js @@ -341,27 +341,6 @@ define([ Common.NotificationCenter.on('uitheme:change', function (name) { mnuitemDarkTheme.setChecked(Common.UI.Themes.isDarkTheme()); }); - - if (!Common.localStorage.getBool("hide-dark-theme-tip") && !(config.customization && config.customization.hideStartTips===true)) { - me.themeTip = new Common.UI.SynchronizeTip({ - target: me.header.btnOptions.$el, - placement : 'bottom-left', - showLink: false, - extCls: (config.customization && config.customization.toolbarNoTabs) ? 'toolbar-color' : 'theme-color', - text: me.textTipTheme - }); - me.themeTip.on({ - 'closeclick': function() { - me.themeTip.hide(); - }, - 'hide': function() { - me.themeTip = undefined; - Common.localStorage.setBool("hide-dark-theme-tip", true); - } - }); - me.themeTip.show(); - me.header.btnOptions.on('click', function() { me.themeTip && me.themeTip.hide(); }); - } } me.header.btnOptions.menu.on('item:click', me.onOptionsItemClick.bind(this));