Delete dark theme tooltip

This commit is contained in:
Julia Radzhabova 2021-02-19 20:00:35 +03:00
parent 1bed0d1bf4
commit 5c1b1185dd
3 changed files with 0 additions and 63 deletions

View file

@ -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));
}

View file

@ -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));

View file

@ -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));