fix link colors in extension editor

上级 8a9fd5c7
......@@ -856,7 +856,7 @@ export class ExtensionEditor extends EditorPane {
}
private openContributions(template: IExtensionEditorTemplate, token: CancellationToken): Promise<IActiveElement | null> {
const content = $('div', { class: 'subcontent', tabindex: '0' });
const content = $('div.subcontent.feature-contributions', { tabindex: '0' });
return this.loadContents(() => this.extensionManifest!.get(), template.content)
.then(manifest => {
if (token.isCancellationRequested) {
......@@ -1644,14 +1644,17 @@ registerThemingParticipant((theme: IColorTheme, collector: ICssStyleCollector) =
const link = theme.getColor(textLinkForeground);
if (link) {
collector.addRule(`.monaco-workbench .extension-editor .content a { color: ${link}; }`);
collector.addRule(`.monaco-workbench .extension-editor .content .details .additional-details-container .resources-container a { color: ${link}; }`);
collector.addRule(`.monaco-workbench .extension-editor .content .feature-contributions a { color: ${link}; }`);
collector.addRule(`.monaco-workbench .extension-editor > .header > .details > .actions-status-container > .status > .status-text a { color: ${link}; }`);
}
const activeLink = theme.getColor(textLinkActiveForeground);
if (activeLink) {
collector.addRule(`.monaco-workbench .extension-editor .content a:hover,
.monaco-workbench .extension-editor .content a:active { color: ${activeLink}; }`);
collector.addRule(`.monaco-workbench .extension-editor .content .details .additional-details-container .resources-container a:hover,
.monaco-workbench .extension-editor .content .details .additional-details-container .resources-container a:active { color: ${activeLink}; }`);
collector.addRule(`.monaco-workbench .extension-editor .content .feature-contributions a:hover,
.monaco-workbench .extension-editor .content .feature-contributions a:active { color: ${activeLink}; }`);
collector.addRule(`.monaco-workbench .extension-editor > .header > .details > .actions-status-container > .status > .status-text a:hover,
.monaco-workbench .extension-editor > .header > .details > actions-status-container > .status > .status-text a:active { color: ${activeLink}; }`);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册