Delete dark theme tooltip
This commit is contained in:
parent
1bed0d1bf4
commit
5c1b1185dd
|
@ -327,27 +327,6 @@ define([
|
||||||
Common.NotificationCenter.on('uitheme:change', function (name) {
|
Common.NotificationCenter.on('uitheme:change', function (name) {
|
||||||
mnuitemDarkTheme.setChecked(Common.UI.Themes.isDarkTheme());
|
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));
|
me.header.btnOptions.menu.on('item:click', me.onOptionsItemClick.bind(this));
|
||||||
}
|
}
|
||||||
|
|
|
@ -330,27 +330,6 @@ define([
|
||||||
Common.NotificationCenter.on('uitheme:change', function (name) {
|
Common.NotificationCenter.on('uitheme:change', function (name) {
|
||||||
mnuitemDarkTheme.setChecked(Common.UI.Themes.isDarkTheme());
|
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));
|
me.header.btnOptions.menu.on('item:click', me.onOptionsItemClick.bind(this));
|
||||||
|
|
|
@ -341,27 +341,6 @@ define([
|
||||||
Common.NotificationCenter.on('uitheme:change', function (name) {
|
Common.NotificationCenter.on('uitheme:change', function (name) {
|
||||||
mnuitemDarkTheme.setChecked(Common.UI.Themes.isDarkTheme());
|
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));
|
me.header.btnOptions.menu.on('item:click', me.onOptionsItemClick.bind(this));
|
||||||
|
|
Loading…
Reference in a new issue