File tree Expand file tree Collapse file tree 2 files changed +13
-14
lines changed
src/vs/platform/opener/browser Expand file tree Collapse file tree 2 files changed +13
-14
lines changed Original file line number Diff line number Diff line change
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ .monaco-link {
7
+ color : var (--vscode-textLink-foreground );
8
+ }
9
+
10
+ .monaco-link : hover {
11
+ color : var (--vscode-textLink-activeForeground );
12
+ }
13
+
Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ import { Event } from 'vs/base/common/event';
11
11
import { KeyCode } from 'vs/base/common/keyCodes' ;
12
12
import { Disposable } from 'vs/base/common/lifecycle' ;
13
13
import { IOpenerService } from 'vs/platform/opener/common/opener' ;
14
- import { textLinkActiveForeground , textLinkForeground } from 'vs/platform/theme/common/colorRegistry' ;
15
- import { registerThemingParticipant } from 'vs/platform/theme/common/themeService' ;
16
14
17
15
export interface ILinkDescriptor {
18
16
readonly label : string | HTMLElement ;
@@ -119,15 +117,3 @@ export class Link extends Disposable {
119
117
this . enabled = true ;
120
118
}
121
119
}
122
-
123
- registerThemingParticipant ( ( theme , collector ) => {
124
- const textLinkForegroundColor = theme . getColor ( textLinkForeground ) ;
125
- if ( textLinkForegroundColor ) {
126
- collector . addRule ( `.monaco-link { color: ${ textLinkForegroundColor } ; }` ) ;
127
- }
128
-
129
- const textLinkActiveForegroundColor = theme . getColor ( textLinkActiveForeground ) ;
130
- if ( textLinkActiveForegroundColor ) {
131
- collector . addRule ( `.monaco-link:hover { color: ${ textLinkActiveForegroundColor } ; }` ) ;
132
- }
133
- } ) ;
You can’t perform that action at this time.
0 commit comments