@@ -23,11 +23,12 @@ import { IContextKeyService } from 'vs/platform/contextkey/common/contextkey';
23
23
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation' ;
24
24
import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegistry' ;
25
25
import { IOpenerService } from 'vs/platform/opener/common/opener' ;
26
- import { editorHoverBackground , editorHoverBorder , editorHoverForeground , editorHoverHighlight , editorHoverStatusBarBackground , textCodeBlockBackground , textLinkActiveForeground , textLinkForeground } from 'vs/platform/theme/common/colorRegistry' ;
26
+ import { editorHoverBorder } from 'vs/platform/theme/common/colorRegistry' ;
27
27
import { registerThemingParticipant } from 'vs/platform/theme/common/themeService' ;
28
28
import { HoverParticipantRegistry } from 'vs/editor/contrib/hover/browser/hoverTypes' ;
29
29
import { MarkdownHoverParticipant } from 'vs/editor/contrib/hover/browser/markdownHoverParticipant' ;
30
30
import { MarkerHoverParticipant } from 'vs/editor/contrib/hover/browser/markerHoverParticipant' ;
31
+ import 'vs/css!./hover' ;
31
32
32
33
export class ModesHoverController implements IEditorContribution {
33
34
@@ -322,39 +323,10 @@ HoverParticipantRegistry.register(MarkerHoverParticipant);
322
323
323
324
// theming
324
325
registerThemingParticipant ( ( theme , collector ) => {
325
- const editorHoverHighlightColor = theme . getColor ( editorHoverHighlight ) ;
326
- if ( editorHoverHighlightColor ) {
327
- collector . addRule ( `.monaco-editor .hoverHighlight { background-color: ${ editorHoverHighlightColor } ; }` ) ;
328
- }
329
- const hoverBackground = theme . getColor ( editorHoverBackground ) ;
330
- if ( hoverBackground ) {
331
- collector . addRule ( `.monaco-editor .monaco-hover { background-color: ${ hoverBackground } ; }` ) ;
332
- }
333
326
const hoverBorder = theme . getColor ( editorHoverBorder ) ;
334
327
if ( hoverBorder ) {
335
- collector . addRule ( `.monaco-editor .monaco-hover { border: 1px solid ${ hoverBorder } ; }` ) ;
336
328
collector . addRule ( `.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${ hoverBorder . transparent ( 0.5 ) } ; }` ) ;
337
329
collector . addRule ( `.monaco-editor .monaco-hover hr { border-top: 1px solid ${ hoverBorder . transparent ( 0.5 ) } ; }` ) ;
338
330
collector . addRule ( `.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${ hoverBorder . transparent ( 0.5 ) } ; }` ) ;
339
331
}
340
- const link = theme . getColor ( textLinkForeground ) ;
341
- if ( link ) {
342
- collector . addRule ( `.monaco-editor .monaco-hover a { color: ${ link } ; }` ) ;
343
- }
344
- const linkHover = theme . getColor ( textLinkActiveForeground ) ;
345
- if ( linkHover ) {
346
- collector . addRule ( `.monaco-editor .monaco-hover a:hover { color: ${ linkHover } ; }` ) ;
347
- }
348
- const hoverForeground = theme . getColor ( editorHoverForeground ) ;
349
- if ( hoverForeground ) {
350
- collector . addRule ( `.monaco-editor .monaco-hover { color: ${ hoverForeground } ; }` ) ;
351
- }
352
- const actionsBackground = theme . getColor ( editorHoverStatusBarBackground ) ;
353
- if ( actionsBackground ) {
354
- collector . addRule ( `.monaco-editor .monaco-hover .hover-row .actions { background-color: ${ actionsBackground } ; }` ) ;
355
- }
356
- const codeBackground = theme . getColor ( textCodeBlockBackground ) ;
357
- if ( codeBackground ) {
358
- collector . addRule ( `.monaco-editor .monaco-hover code { background-color: ${ codeBackground } ; }` ) ;
359
- }
360
332
} ) ;
0 commit comments