mirror of
https://github.com/Microsoft/vscode
synced 2024-10-05 19:02:54 +00:00
colorCustomizations: Do we need editorLinkForeground? Fixes #25474
This commit is contained in:
parent
bf8f73262e
commit
6ee1fb1f78
|
@ -24,7 +24,7 @@ import { getLinks, Link } from 'vs/editor/contrib/links/common/links';
|
|||
import { IDisposable, dispose } from 'vs/base/common/lifecycle';
|
||||
import { editorContribution } from 'vs/editor/browser/editorBrowserExtensions';
|
||||
import { registerThemingParticipant } from 'vs/platform/theme/common/themeService';
|
||||
import { editorLinkForeground, editorActiveLinkForeground } from 'vs/platform/theme/common/colorRegistry';
|
||||
import { editorActiveLinkForeground } from 'vs/platform/theme/common/colorRegistry';
|
||||
import { Position } from 'vs/editor/common/core/position';
|
||||
|
||||
class LinkOccurence {
|
||||
|
@ -350,8 +350,4 @@ registerThemingParticipant((theme, collector) => {
|
|||
if (activeLinkForeground) {
|
||||
collector.addRule(`.monaco-editor.${theme.selector} .detected-link-active { color: ${activeLinkForeground} !important; }`);
|
||||
}
|
||||
let linkForeground = theme.getColor(editorLinkForeground);
|
||||
if (linkForeground) {
|
||||
collector.addRule(`.monaco-editor.${theme.selector} .detected-link { color: ${linkForeground} !important; }`);
|
||||
}
|
||||
});
|
|
@ -195,7 +195,6 @@ export const editorFindRangeHighlight = registerColor('editor.findRangeHighlight
|
|||
* Editor link colors
|
||||
*/
|
||||
export const editorActiveLinkForeground = registerColor('editorLink.activeForeground', { dark: '#4E94CE', light: Color.black, hc: Color.cyan }, nls.localize('activeLinkForeground', 'Color of active links.'));
|
||||
export const editorLinkForeground = registerColor('editorLink.foreground', { dark: null, light: null, hc: null }, nls.localize('linkForeground', 'Color of links.'));
|
||||
|
||||
/**
|
||||
* Find widget
|
||||
|
|
|
@ -57,8 +57,6 @@ addSettingMapping('selectionHighlightColor', colorRegistry.editorSelectionHighli
|
|||
addSettingMapping('findMatchHighlight', colorRegistry.editorFindMatchHighlight);
|
||||
addSettingMapping('currentFindMatchHighlight', colorRegistry.editorFindMatch);
|
||||
addSettingMapping('hoverHighlight', editorHoverHighlight);
|
||||
addSettingMapping('hoverHighlight', editorHoverHighlight);
|
||||
addSettingMapping('linkForeground', colorRegistry.editorLinkForeground);
|
||||
addSettingMapping('wordHighlight', wordHighlighter.editorWordHighlight);
|
||||
addSettingMapping('wordHighlightStrong', wordHighlighter.editorWordHighlightStrong);
|
||||
addSettingMapping('findRangeHighlight', colorRegistry.editorFindRangeHighlight);
|
||||
|
|
Loading…
Reference in a new issue