Merge pull request #130966 from jeanp413/fix-129193
Fixes suggest details should use link hover color
This commit is contained in:
commit
6fea665f68
|
@ -21,7 +21,7 @@ import { Context as SuggestContext, CompletionItem } from './suggest';
|
|||
import { CompletionModel } from './completionModel';
|
||||
import { attachListStyler } from 'vs/platform/theme/common/styler';
|
||||
import { IThemeService, IColorTheme, registerThemingParticipant } from 'vs/platform/theme/common/themeService';
|
||||
import { registerColor, editorWidgetBackground, quickInputListFocusBackground, activeContrastBorder, listHighlightForeground, editorForeground, editorWidgetBorder, focusBorder, textLinkForeground, textCodeBlockBackground, quickInputListFocusForeground, listFocusHighlightForeground, quickInputListFocusIconForeground } from 'vs/platform/theme/common/colorRegistry';
|
||||
import { registerColor, editorWidgetBackground, quickInputListFocusBackground, activeContrastBorder, listHighlightForeground, editorForeground, editorWidgetBorder, focusBorder, textLinkForeground, textCodeBlockBackground, quickInputListFocusForeground, listFocusHighlightForeground, quickInputListFocusIconForeground, textLinkActiveForeground } from 'vs/platform/theme/common/colorRegistry';
|
||||
import { IStorageService, StorageScope, StorageTarget } from 'vs/platform/storage/common/storage';
|
||||
import { TimeoutTimer, CancelablePromise, createCancelablePromise, disposableTimeout } from 'vs/base/common/async';
|
||||
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
|
||||
|
@ -1014,6 +1014,11 @@ registerThemingParticipant((theme, collector) => {
|
|||
collector.addRule(`.monaco-editor .suggest-details a { color: ${link}; }`);
|
||||
}
|
||||
|
||||
const linkHover = theme.getColor(textLinkActiveForeground);
|
||||
if (linkHover) {
|
||||
collector.addRule(`.monaco-editor .suggest-details a:hover { color: ${linkHover}; }`);
|
||||
}
|
||||
|
||||
const codeBackground = theme.getColor(textCodeBlockBackground);
|
||||
if (codeBackground) {
|
||||
collector.addRule(`.monaco-editor .suggest-details code { background-color: ${codeBackground}; }`);
|
||||
|
|
Loading…
Reference in a new issue