提交 3fb8c8fe 编写于 作者: R Rob Lourens

Remove "see new UI editor" ad from JSON settings editor

上级 4092c0d6
......@@ -10,20 +10,6 @@
padding-top: 11px;
}
.preferences-editor > .preferences-header > .new-settings-ad {
color: #6f6f6f;
margin-bottom: 4px;
font-size: 12px;
}
.vs-dark .preferences-editor > .preferences-header > .new-settings-ad {
color: #bbbbbb;
}
.hc-black .preferences-editor > .preferences-header > .new-settings-ad {
color: white;
}
.preferences-editor > .preferences-header > .new-settings-ad > .open-settings2-button {
padding: 0;
text-decoration: underline;
......
......@@ -108,20 +108,6 @@ export class PreferencesEditor extends BaseEditor {
DOM.addClass(parent, 'preferences-editor');
this.headerContainer = DOM.append(parent, DOM.$('.preferences-header'));
const advertisement = DOM.append(this.headerContainer, DOM.$('.new-settings-ad'));
const advertisementLabel = DOM.append(advertisement, DOM.$('span.new-settings-ad-label'));
advertisementLabel.textContent = nls.localize('advertisementLabel', "Try a preview of our ") + ' ';
const openSettings2Button = this._register(new Button(advertisement, { title: true, buttonBackground: null, buttonHoverBackground: null }));
openSettings2Button.style({
buttonBackground: null,
buttonForeground: null,
buttonBorder: null,
buttonHoverBackground: null
});
openSettings2Button.label = nls.localize('openSettings2Label', "new settings editor");
openSettings2Button.element.classList.add('open-settings2-button');
this._register(openSettings2Button.onDidClick(() => this.preferencesService.openSettings(false)));
this.searchWidget = this._register(this.instantiationService.createInstance(SearchWidget, this.headerContainer, {
ariaLabel: nls.localize('SearchSettingsWidget.AriaLabel', "Search settings"),
placeholder: nls.localize('SearchSettingsWidget.Placeholder', "Search Settings"),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册